From 13e09953af630a204e5845dea0e9b6d9db786be9 Mon Sep 17 00:00:00 2001 From: "arcum42@gmail.com" Date: Sun, 1 May 2022 14:28:21 -0700 Subject: [PATCH] Remove unused code in Dependencies.h --- common/Dependencies.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/common/Dependencies.h b/common/Dependencies.h index 350486ea26..3fd2fe2fab 100644 --- a/common/Dependencies.h +++ b/common/Dependencies.h @@ -23,22 +23,6 @@ // This should prove useful.... #define wxsFormat wxString::Format -#ifdef PCSX2_DEBUG -#define tryDEBUG try -#define catchDEBUG(clause) catch (clause) -#else -#define tryDEBUG if (true) -#define catchDEBUG(clause) if (false) -#endif - -#if defined(PCSX2_DEVBUILD) || defined(PCSX2_DEBUG) -#define tryDEVEL try -#define catchDEVEL catch (clause) -#else -#define tryDEBUG if (true) -#define catchDEBUG(clause) if (false) -#endif - // -------------------------------------------------------------------------------------- // ImplementEnumOperators (macro) // -------------------------------------------------------------------------------------- @@ -139,30 +123,6 @@ private: \ classname& operator=(const classname&) #endif - -// -------------------------------------------------------------------------------------- -// ScopedBool - Makes sure a boolean is set back to FALSE when current scope is left -// -------------------------------------------------------------------------------------- -// Exception-safe way of tracking entry and exit of various functions of execution zones. -// -class ScopedBool -{ -protected: - bool* m_boolme; - -public: - ScopedBool(bool& boolme) - { - boolme = true; - m_boolme = &boolme; - } - - ~ScopedBool() - { - *m_boolme = false; - } -}; - // -------------------------------------------------------------------------------------- // _(x) / _t(x) / _d(x) / pxL(x) / pxLt(x) [macros] // --------------------------------------------------------------------------------------