From 929765e95e3157ce15e3696b8f63fd31b062476d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Mon, 12 Jun 2023 21:00:56 +0200 Subject: [PATCH] Remove unused `DoButton_File` --- src/game/editor/editor.cpp | 11 ----------- src/game/editor/editor.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index dc8026900..c012ecbdb 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -218,17 +218,6 @@ int CEditor::DoButton_Env(const void *pID, const char *pText, int Checked, const return DoButton_Editor_Common(pID, pText, Checked, pRect, 0, pToolTip); } -int CEditor::DoButton_File(const void *pID, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip) -{ - if(Checked) - pRect->Draw(GetButtonColor(pID, Checked), IGraphics::CORNER_ALL, 3.0f); - - CUIRect Rect; - pRect->VMargin(5.0f, &Rect); - UI()->DoLabel(&Rect, pText, 10.0f, TEXTALIGN_ML); - return DoButton_Editor_Common(pID, pText, Checked, pRect, Flags, pToolTip); -} - int CEditor::DoButton_Menu(const void *pID, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip) { pRect->Draw(ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f), IGraphics::CORNER_T, 3.0f); diff --git a/src/game/editor/editor.h b/src/game/editor/editor.h index fe8761265..0142ce8f0 100644 --- a/src/game/editor/editor.h +++ b/src/game/editor/editor.h @@ -832,8 +832,6 @@ public: int DoButton_ButtonDec(const void *pID, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip); int DoButton_ButtonInc(const void *pID, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip); - int DoButton_File(const void *pID, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip); - int DoButton_Menu(const void *pID, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip); int DoButton_MenuItem(const void *pID, const char *pText, int Checked, const CUIRect *pRect, int Flags = 0, const char *pToolTip = nullptr);