From d21cf191f0ab5e72f92f512703b96170fb8d52b9 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 12 Jan 2024 01:58:35 +0100 Subject: [PATCH] Tier0: fix netconsole and revpk compile error in debug CCommandLine isn't implemented in tools, thus unresolved external symbol errors will be thrown. HushAsserts() was unused and therefore removed which fixes these errors. --- src/public/tier0/dbg.h | 1 - src/tier0/dbg.cpp | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/src/public/tier0/dbg.h b/src/public/tier0/dbg.h index 643c8c1d..fcc69833 100644 --- a/src/public/tier0/dbg.h +++ b/src/public/tier0/dbg.h @@ -15,7 +15,6 @@ // Used for the 'Error' function, this tells the function to only log, not quit. //#define NO_ERROR 0 -bool HushAsserts(); //----------------------------------------------------------------------------- enum class eDLL_T : int { diff --git a/src/tier0/dbg.cpp b/src/tier0/dbg.cpp index c48b5768..76e9f63f 100644 --- a/src/tier0/dbg.cpp +++ b/src/tier0/dbg.cpp @@ -19,19 +19,6 @@ CoreMsgVCallbackSink_t g_CoreMsgVCallback = nullptr; -//----------------------------------------------------------------------------- -// True if -hushasserts was passed on command line. -//----------------------------------------------------------------------------- -bool HushAsserts() -{ -#if defined (DBGFLAG_ASSERT) && !defined (_TOOLS) - static bool s_bHushAsserts = !!CommandLine()->FindParm("-hushasserts"); - return s_bHushAsserts; -#else - return true; -#endif -} - //----------------------------------------------------------------------------- // Templates to assist in validating pointers: //-----------------------------------------------------------------------------