Clean up - remove dead code.
parent
ba60fbdd71
commit
193c4ecc5b
|
@ -1560,19 +1560,6 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
case NPPM_INTERNAL_GETCHECKDOCOPT:
|
||||
{
|
||||
return (LRESULT)(pNppParam->getNppGUI())._fileAutoDetection;
|
||||
}
|
||||
|
||||
case NPPM_INTERNAL_SETCHECKDOCOPT:
|
||||
{
|
||||
// If nothing is changed by user, then we allow to set this value
|
||||
if ((const_cast<NppGUI &>(pNppParam->getNppGUI()))._fileAutoDetection == (pNppParam->getNppGUI())._fileAutoDetectionOriginalValue)
|
||||
(const_cast<NppGUI &>(pNppParam->getNppGUI()))._fileAutoDetection = (ChangeDetect)wParam;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
case NPPM_GETPOSFROMBUFFERID:
|
||||
{
|
||||
int i;
|
||||
|
|
|
@ -4203,8 +4203,6 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
_nppGUI._fileAutoDetection = (cdEnabledCurrent | cdAutoUpdate | cdGo2end);
|
||||
else //(!lstrcmp(val, TEXT("no")))
|
||||
_nppGUI._fileAutoDetection = cdDisabled;
|
||||
|
||||
_nppGUI._fileAutoDetectionOriginalValue = _nppGUI._fileAutoDetection;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -789,7 +789,7 @@ struct NppGUI final
|
|||
bool _tabReplacedBySpace = false;
|
||||
|
||||
int _fileAutoDetection = cdEnabledAll;
|
||||
int _fileAutoDetectionOriginalValue = cdEnabledAll;
|
||||
|
||||
bool _checkHistoryFiles = false;
|
||||
|
||||
RECT _appPos;
|
||||
|
|
|
@ -457,11 +457,6 @@
|
|||
#define CHECKDOCOPT_UPDATESILENTLY 1
|
||||
#define CHECKDOCOPT_UPDATEGO2END 2
|
||||
|
||||
#define NPPM_INTERNAL_GETCHECKDOCOPT (NPPMSG + 55)
|
||||
// INT NPPM_GETCHECKDOCOPT(0, 0)
|
||||
#define NPPM_INTERNAL_SETCHECKDOCOPT (NPPMSG + 56)
|
||||
// INT NPPM_SETCHECKDOCOPT(OPT, 0)
|
||||
|
||||
//
|
||||
// Used by netnote plugin
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue