From 2522fe9517075924c63ef27d27cc521e60603fe8 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Thu, 14 Nov 2024 22:16:05 +0400 Subject: [PATCH] Remove dead code --- apps/openmw/mwgui/windowmanagerimp.hpp | 2 -- apps/openmw/mwinput/inputmanagerimp.hpp | 10 ---------- apps/openmw/mwrender/renderingmanager.hpp | 1 - apps/openmw/mwsound/openal_output.cpp | 2 -- components/files/configurationmanager.hpp | 1 - components/resource/scenemanager.hpp | 2 -- 6 files changed, 18 deletions(-) diff --git a/apps/openmw/mwgui/windowmanagerimp.hpp b/apps/openmw/mwgui/windowmanagerimp.hpp index f7c778e10a..3ca863127b 100644 --- a/apps/openmw/mwgui/windowmanagerimp.hpp +++ b/apps/openmw/mwgui/windowmanagerimp.hpp @@ -317,8 +317,6 @@ namespace MWGui const Translation::Storage& getTranslationDataStorage() const override; - void onSoulgemDialogButtonPressed(int button); - bool getCursorVisible() override; /// Call when mouse cursor or buttons are used. diff --git a/apps/openmw/mwinput/inputmanagerimp.hpp b/apps/openmw/mwinput/inputmanagerimp.hpp index 6131d77c65..39a1133db5 100644 --- a/apps/openmw/mwinput/inputmanagerimp.hpp +++ b/apps/openmw/mwinput/inputmanagerimp.hpp @@ -104,16 +104,6 @@ namespace MWInput bool controlsDisabled() override { return mControlsDisabled; } private: - void convertMousePosForMyGUI(int& x, int& y); - - void handleGuiArrowKey(int action); - - void quickKey(int index); - void showQuickKeysMenu(); - - void loadKeyDefaults(bool force = false); - void loadControllerDefaults(bool force = false); - bool mControlsDisabled; std::unique_ptr mInputWrapper; diff --git a/apps/openmw/mwrender/renderingmanager.hpp b/apps/openmw/mwrender/renderingmanager.hpp index 8e8c266895..7e68f666a1 100644 --- a/apps/openmw/mwrender/renderingmanager.hpp +++ b/apps/openmw/mwrender/renderingmanager.hpp @@ -280,7 +280,6 @@ namespace MWRender void updateTextureFiltering(); void updateAmbient(); void setFogColor(const osg::Vec4f& color); - void updateThirdPersonViewMode(); struct WorldspaceChunkMgr { diff --git a/apps/openmw/mwsound/openal_output.cpp b/apps/openmw/mwsound/openal_output.cpp index 822c467813..3c3d6fb26e 100644 --- a/apps/openmw/mwsound/openal_output.cpp +++ b/apps/openmw/mwsound/openal_output.cpp @@ -298,8 +298,6 @@ namespace MWSound std::atomic mIsFinished; - void updateAll(bool local); - OpenAL_SoundStream(const OpenAL_SoundStream& rhs); OpenAL_SoundStream& operator=(const OpenAL_SoundStream& rhs); diff --git a/components/files/configurationmanager.hpp b/components/files/configurationmanager.hpp index aec7799fea..306ea38fe1 100644 --- a/components/files/configurationmanager.hpp +++ b/components/files/configurationmanager.hpp @@ -47,7 +47,6 @@ namespace Files const std::filesystem::path& getUserConfigPath() const; const std::filesystem::path& getUserDataPath() const; - const std::filesystem::path& getLocalDataPath() const; const std::filesystem::path& getInstallPath() const; const std::vector& getActiveConfigPaths() const { return mActiveConfigPaths; } diff --git a/components/resource/scenemanager.hpp b/components/resource/scenemanager.hpp index ecd94e257c..219ecd2a94 100644 --- a/components/resource/scenemanager.hpp +++ b/components/resource/scenemanager.hpp @@ -275,8 +275,6 @@ namespace Resource SceneManager(const SceneManager&); void operator=(const SceneManager&); }; - - std::string getFileExtension(const std::string& file); } #endif