Clean up - remove dead code.

pull/5434/head
Don HO 2019-03-17 18:02:06 +01:00
parent ba60fbdd71
commit 193c4ecc5b
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
4 changed files with 1 additions and 21 deletions

View File

@ -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;

View File

@ -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;
}
}
}

View File

@ -789,7 +789,7 @@ struct NppGUI final
bool _tabReplacedBySpace = false;
int _fileAutoDetection = cdEnabledAll;
int _fileAutoDetectionOriginalValue = cdEnabledAll;
bool _checkHistoryFiles = false;
RECT _appPos;

View File

@ -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
//