diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index e9437f906..8daa47b16 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -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(pNppParam->getNppGUI()))._fileAutoDetection == (pNppParam->getNppGUI())._fileAutoDetectionOriginalValue) - (const_cast(pNppParam->getNppGUI()))._fileAutoDetection = (ChangeDetect)wParam; - return TRUE; - } - case NPPM_GETPOSFROMBUFFERID: { int i; diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index f0a896a59..10b809867 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -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; } } } diff --git a/PowerEditor/src/Parameters.h b/PowerEditor/src/Parameters.h index f39969e13..62daa2e0c 100644 --- a/PowerEditor/src/Parameters.h +++ b/PowerEditor/src/Parameters.h @@ -789,7 +789,7 @@ struct NppGUI final bool _tabReplacedBySpace = false; int _fileAutoDetection = cdEnabledAll; - int _fileAutoDetectionOriginalValue = cdEnabledAll; + bool _checkHistoryFiles = false; RECT _appPos; diff --git a/PowerEditor/src/resource.h b/PowerEditor/src/resource.h index fb91891f6..c09479de8 100644 --- a/PowerEditor/src/resource.h +++ b/PowerEditor/src/resource.h @@ -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 //