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.
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,
ETBZoomToggleID.patch (1.32 KB)