浏览代码

Compiler warnings discovered by build server (2nd set)

Source commit: eee3afe0650abcc4b04504c23c8c81018c925a52
Martin Prikryl 9 年之前
父节点
当前提交
09497af552
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      source/forms/NonVisual.cpp

+ 0 - 2
source/forms/NonVisual.cpp

@@ -1164,7 +1164,6 @@ bool __fastcall TNonVisualDataModule::CheckCustomCommandsToolbarList(TTBXToolbar
 //---------------------------------------------------------------------------
 void __fastcall TNonVisualDataModule::UpdateCustomCommandsToolbarList(TTBXToolbar * Toolbar, TCustomCommandList * List, int & Index)
 {
-  int CommandIndex = 0;
   for (int CommandIndex = 0; CommandIndex < List->Count; CommandIndex++, Index++)
   {
     TTBCustomItem * Item = Toolbar->Items->Items[Index];
@@ -1185,7 +1184,6 @@ void __fastcall TNonVisualDataModule::UpdateCustomCommandsToolbar(TTBXToolbar *
 
   TCustomCommandList * CustomCommandList = WinConfiguration->CustomCommandList;
   TCustomCommandList * ExtensionList = WinConfiguration->ExtensionList;
-  int ExtensionSeparatorCount = (ExtensionList->Count > 0) ? 1 : 0;
   int AfterCustomCommandsCommandCount = 2; // ad hoc, last
   int AdditionalCommands = AfterCustomCommandsCommandCount + 3; // custom/ext separator + separator, customize
   int CommandCount = CustomCommandList->Count + ExtensionList->Count;