Remove unused/obsolete variable ETBZoomToggleID

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Remove unused/obsolete variable ETBZoomToggleID

Post by Edgar » Mon Oct 27, 2014 12:59 am

Commit r5548
Author: lll
Date: 15 September 2006
5548 llucius #if 0 // Disabled for version 1.2.0 since it doesn't work quite right...
5548 llucius ETBZoomToggleID,
5548 llucius #endif

ETBZoomToggleID only appears in three lines of code all of which have been disabled since 2006. I suspect these lines could be removed. I will attach a patch but it will probably be stale quickly.

Code: Select all

Index: src/toolbars/EditToolBar.cpp
===================================================================
--- src/toolbars/EditToolBar.cpp	(revision 13509)
+++ src/toolbars/EditToolBar.cpp	(working copy)
@@ -260,13 +260,6 @@
       case ETBZoomOutID:
          p->OnZoomOut();
          break;
-
-#if 0 // Disabled for version 1.2.0 since it doesn't work quite right...
-      case ETBZoomToggleID:
-         p->OnZoomToggle();
-         break;
-#endif
-
       case ETBZoomSelID:
          p->OnZoomSel();
          break;
@@ -311,10 +304,6 @@
    mButtons[ETBZoomInID]->SetEnabled(tracks && (p->GetZoom() < gMaxZoom));
    mButtons[ETBZoomOutID]->SetEnabled(tracks && (p->GetZoom() > gMinZoom) );
 
-   #if 0 // Disabled for version 1.2.0 since it doesn't work quite right...
-   mButtons[ETBZoomToggleID]->SetEnabled(tracks);
-   #endif
-
    mButtons[ETBZoomSelID]->SetEnabled(selection);
    mButtons[ETBZoomFitID]->SetEnabled(tracks);
 
Index: src/toolbars/EditToolBar.h
===================================================================
--- src/toolbars/EditToolBar.h	(revision 13509)
+++ src/toolbars/EditToolBar.h	(working copy)
@@ -43,11 +43,6 @@
 
    ETBZoomInID,
    ETBZoomOutID,
-
-   #if 0 // Disabled for version 1.2.0 since it doesn't work quite right...
-   ETBZoomToggleID,
-   #endif
-
    ETBZoomSelID,
    ETBZoomFitID,
Attachments
ETBZoomToggleID.patch
(1.32 KiB) Downloaded 90 times
-Edgar
running Audacity personally customized 2.0.6 daily in a professional audio studio
occasionally using current Audacity alpha for testing and support situations
64-bit Windows Pro 10

Post Reply