mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-26 23:34:44 +02:00
Clean up - remove dead code.
This commit is contained in:
parent
ba60fbdd71
commit
193c4ecc5b
@ -1560,19 +1560,6 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||||||
return TRUE;
|
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:
|
case NPPM_GETPOSFROMBUFFERID:
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -4203,8 +4203,6 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||||||
_nppGUI._fileAutoDetection = (cdEnabledCurrent | cdAutoUpdate | cdGo2end);
|
_nppGUI._fileAutoDetection = (cdEnabledCurrent | cdAutoUpdate | cdGo2end);
|
||||||
else //(!lstrcmp(val, TEXT("no")))
|
else //(!lstrcmp(val, TEXT("no")))
|
||||||
_nppGUI._fileAutoDetection = cdDisabled;
|
_nppGUI._fileAutoDetection = cdDisabled;
|
||||||
|
|
||||||
_nppGUI._fileAutoDetectionOriginalValue = _nppGUI._fileAutoDetection;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -789,7 +789,7 @@ struct NppGUI final
|
|||||||
bool _tabReplacedBySpace = false;
|
bool _tabReplacedBySpace = false;
|
||||||
|
|
||||||
int _fileAutoDetection = cdEnabledAll;
|
int _fileAutoDetection = cdEnabledAll;
|
||||||
int _fileAutoDetectionOriginalValue = cdEnabledAll;
|
|
||||||
bool _checkHistoryFiles = false;
|
bool _checkHistoryFiles = false;
|
||||||
|
|
||||||
RECT _appPos;
|
RECT _appPos;
|
||||||
|
@ -457,11 +457,6 @@
|
|||||||
#define CHECKDOCOPT_UPDATESILENTLY 1
|
#define CHECKDOCOPT_UPDATESILENTLY 1
|
||||||
#define CHECKDOCOPT_UPDATEGO2END 2
|
#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
|
// Used by netnote plugin
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user