From 1871efa02bf92cb5fff2700c8bdef355dfd5a55e Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 6 Feb 2017 16:01:10 +0000 Subject: [PATCH] Commit missing parts of d77f617. --- src/platform/gtkmain.cpp | 9 --------- src/platform/headless.cpp | 5 ----- src/platform/w32main.cpp | 10 ---------- src/solvespace.h | 2 -- 4 files changed, 26 deletions(-) diff --git a/src/platform/gtkmain.cpp b/src/platform/gtkmain.cpp index 079fd395..430f6ecb 100644 --- a/src/platform/gtkmain.cpp +++ b/src/platform/gtkmain.cpp @@ -628,15 +628,6 @@ bool GraphicsEditControlIsVisible(void) { return GW->get_overlay().is_editing(); } -/* TODO: removing menubar breaks accelerators. */ -void ToggleMenuBar(void) { - GW->get_menubar().set_visible(!GW->get_menubar().is_visible()); -} - -bool MenuBarIsVisible(void) { - return GW->get_menubar().is_visible(); -} - /* Context menus */ class ContextMenuItem : public Gtk::MenuItem { diff --git a/src/platform/headless.cpp b/src/platform/headless.cpp index 83505346..4bd3d861 100644 --- a/src/platform/headless.cpp +++ b/src/platform/headless.cpp @@ -163,11 +163,6 @@ void HideGraphicsEditControl() { bool GraphicsEditControlIsVisible() { return false; } -void ToggleMenuBar() { -} -bool MenuBarIsVisible() { - return false; -} void AddContextMenuItem(const char *label, ContextCommand cmd) { ssassert(false, "Not implemented"); } diff --git a/src/platform/w32main.cpp b/src/platform/w32main.cpp index 5960f0e8..8142e742 100644 --- a/src/platform/w32main.cpp +++ b/src/platform/w32main.cpp @@ -752,16 +752,6 @@ static bool ProcessKeyDown(WPARAM wParam) return false; } -void SolveSpace::ToggleMenuBar() -{ - // Implement me -} -bool SolveSpace::MenuBarIsVisible() -{ - // Implement me - return true; -} - void SolveSpace::ShowTextWindow(bool visible) { ShowWindow(TextWnd, visible ? SW_SHOWNOACTIVATE : SW_HIDE); diff --git a/src/solvespace.h b/src/solvespace.h index 32a07e34..63da78a5 100644 --- a/src/solvespace.h +++ b/src/solvespace.h @@ -203,8 +203,6 @@ void AddContextMenuItem(const char *legend, ContextCommand id); void CreateContextSubmenu(); ContextCommand ShowContextMenu(); -void ToggleMenuBar(); -bool MenuBarIsVisible(); void ShowTextWindow(bool visible); void InvalidateText(); void InvalidateGraphics();