Fix minor coding error & remove unused variables
This commit is contained in:
parent
c80a5c13f1
commit
ade01204c8
@ -4879,7 +4879,7 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
||||
const TCHAR *bDir = element->Attribute(TEXT("useCustumDir"));
|
||||
if (bDir)
|
||||
{
|
||||
_nppGUI._useDir = (lstrcmp(bDir, TEXT("yes")) == 0);;
|
||||
_nppGUI._useDir = (lstrcmp(bDir, TEXT("yes")) == 0);
|
||||
}
|
||||
const TCHAR *pDir = element->Attribute(TEXT("dir"));
|
||||
if (pDir)
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
|
||||
private:
|
||||
std::vector<MatchedCharInserted> _insertedMatchedChars;
|
||||
ScintillaEditView * _pEditView = nullptr;;
|
||||
ScintillaEditView * _pEditView = nullptr;
|
||||
};
|
||||
|
||||
class AutoCompletion {
|
||||
|
@ -74,7 +74,7 @@ private:
|
||||
void reset(); //reset all vars in case function is invalidated
|
||||
void cleanup(); //delete any leftovers
|
||||
bool isBasicWordChar(TCHAR ch) const {
|
||||
return (ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z' || ch >= '0' && ch <= '9' || ch == '_');
|
||||
return ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9') || ch == '_');
|
||||
};
|
||||
bool isAdditionalWordChar(TCHAR ch) const {
|
||||
const TCHAR *addChars = _additionalWordChar.c_str();
|
||||
|
@ -1850,7 +1850,6 @@ void ScintillaEditView::restoreCurrentPosPostStep()
|
||||
if (!_positionRestoreNeeded)
|
||||
return;
|
||||
|
||||
static int32_t restoreDone = 0;
|
||||
Buffer * buf = MainFileManager.getBufferByID(_currentBufferID);
|
||||
Position & pos = buf->getPosition(this);
|
||||
|
||||
|
@ -1193,10 +1193,6 @@ int DockingCont::hideToolbar(tTbData *pTbData, BOOL hideClient)
|
||||
|
||||
if (iItemCnt != 0)
|
||||
{
|
||||
TCITEM tcItem = {0};
|
||||
|
||||
tcItem.mask = TCIF_PARAM;
|
||||
|
||||
if (iItem == iItemCnt)
|
||||
{
|
||||
iItem--;
|
||||
|
@ -1329,7 +1329,6 @@ LRESULT CALLBACK GridProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
HMENU SelfMenu;
|
||||
HINSTANCE hInst;
|
||||
int iDataType;
|
||||
static int ASCII;
|
||||
|
||||
|
||||
SelfIndex=FindGrid(GetMenu(hWnd));
|
||||
|
@ -280,7 +280,7 @@ void PluginsAdminDlg::create(int dialogID, bool isRTL, bool msgDestParent)
|
||||
_tab.insertAtEnd(updates);
|
||||
_tab.insertAtEnd(installed);
|
||||
|
||||
rect.bottom -= 100;;
|
||||
rect.bottom -= 100;
|
||||
_tab.reSizeTo(rect);
|
||||
_tab.display();
|
||||
|
||||
|
@ -296,7 +296,7 @@ void ToolBar::reset(bool create)
|
||||
else
|
||||
{
|
||||
//Else set the internal imagelist with standard bitmaps
|
||||
int iconDpiDynamicalSize = NppParameters::getInstance()._dpiManager.scaleX(16);;
|
||||
int iconDpiDynamicalSize = NppParameters::getInstance()._dpiManager.scaleX(16);
|
||||
::SendMessage(_hSelf, TB_SETBITMAPSIZE, 0, MAKELPARAM(iconDpiDynamicalSize, iconDpiDynamicalSize));
|
||||
|
||||
//TBADDBITMAP addbmp = {_hInst, 0};
|
||||
|
@ -1613,7 +1613,6 @@ static void ColouriseUserDoc(Sci_PositionU startPos, Sci_Position length, int in
|
||||
int nlCount = 0;
|
||||
|
||||
int continueCommentBlock = 0;
|
||||
bool startOfDelimiter = false;
|
||||
int decSeparator = SEPARATOR_DOT;
|
||||
|
||||
vector<nestedInfo> lastNestedGroup;
|
||||
@ -2003,8 +2002,7 @@ static void ColouriseUserDoc(Sci_PositionU startPos, Sci_Position length, int in
|
||||
dontMove = true;
|
||||
if (sc.atLineEnd)
|
||||
checkEOL = EOL_SKIP_CHECK;
|
||||
if (lineCommentNesting & SCE_USER_MASK_NESTING_NUMBERS)
|
||||
startOfDelimiter = true;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -2034,8 +2032,7 @@ static void ColouriseUserDoc(Sci_PositionU startPos, Sci_Position length, int in
|
||||
dontMove = true;
|
||||
if (sc.atLineEnd)
|
||||
checkEOL = EOL_SKIP_CHECK;
|
||||
if (commentNesting & SCE_USER_MASK_NESTING_NUMBERS)
|
||||
startOfDelimiter = true;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user