From edabd1bae79ed95fae54ec8d14d09433b56d1e51 Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 29 Jul 2021 21:55:14 -0400 Subject: [PATCH] [client] imgui: remove no longer used overlay_utils.cpp --- client/CMakeLists.txt | 1 - client/include/overlay_utils.h | 9 --------- client/src/overlay_utils.cpp | 28 ---------------------------- 3 files changed, 38 deletions(-) delete mode 100644 client/src/overlay_utils.cpp diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index a99a3f62..fb5c3773 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -113,7 +113,6 @@ set(SOURCES src/egl_dynprocs.c src/eglutil.c src/overlay_utils.c - src/overlay_utils.cpp src/overlay/alert.c src/overlay/fps.c diff --git a/client/include/overlay_utils.h b/client/include/overlay_utils.h index 282c9c42..faaf9c9f 100644 --- a/client/include/overlay_utils.h +++ b/client/include/overlay_utils.h @@ -23,18 +23,9 @@ #include "common/types.h" -#ifdef __cplusplus -extern "C" { -#endif - typedef struct ImVec2 ImVec2; void overlayGetImGuiRect(struct Rect * rect); ImVec2 * overlayGetScreenSize(void); -void imGuiResetStyle(void); - -#ifdef __cplusplus -} -#endif #endif diff --git a/client/src/overlay_utils.cpp b/client/src/overlay_utils.cpp deleted file mode 100644 index 75bbe4f3..00000000 --- a/client/src/overlay_utils.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Looking Glass - * Copyright (C) 2017-2021 The Looking Glass Authors - * https://looking-glass.io - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the Free - * Software Foundation; either version 2 of the License, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., 59 - * Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include "overlay_utils.h" - -#include "imgui.h" - -void imGuiResetStyle(void) -{ - ImGui::GetStyle() = ImGuiStyle(); -}