Browse Source

Remove unused Log procedures for initialise and shutdown

Michael Ragazzon 1 year ago
parent
commit
cbeea43804
3 changed files with 0 additions and 19 deletions
  1. 0 7
      Include/RmlUi/Core/Log.h
  2. 0 5
      Source/Core/Core.cpp
  3. 0 7
      Source/Core/Log.cpp

+ 0 - 7
Include/RmlUi/Core/Log.h

@@ -52,13 +52,6 @@ public:
 		LT_MAX,
 		LT_MAX,
 	};
 	};
 
 
-public:
-	/// Initialises the logging interface.
-	/// @return True if the logging interface was successful, false if not.
-	static bool Initialise();
-	/// Shutdown the log interface.
-	static void Shutdown();
-
 	/// Log the specified message via the registered log interface
 	/// Log the specified message via the registered log interface
 	/// @param[in] type Type of message.
 	/// @param[in] type Type of message.
 	/// @param[in] format The message, with sprintf-style parameters.
 	/// @param[in] format The message, with sprintf-style parameters.

+ 0 - 5
Source/Core/Core.cpp

@@ -94,8 +94,6 @@ bool Initialise()
 {
 {
 	RMLUI_ASSERTMSG(!initialised, "Rml::Initialise() called, but RmlUi is already initialised!");
 	RMLUI_ASSERTMSG(!initialised, "Rml::Initialise() called, but RmlUi is already initialised!");
 
 
-	Log::Initialise();
-
 	// Check for valid interfaces, or install default interfaces as appropriate.
 	// Check for valid interfaces, or install default interfaces as appropriate.
 	if (!system_interface)
 	if (!system_interface)
 	{
 	{
@@ -184,9 +182,6 @@ void Shutdown()
 
 
 	default_file_interface.reset();
 	default_file_interface.reset();
 
 
-	Log::Shutdown();
-
-	// Release any memory pools
 	ReleaseMemoryPools();
 	ReleaseMemoryPools();
 }
 }
 
 

+ 0 - 7
Source/Core/Log.cpp

@@ -35,13 +35,6 @@
 
 
 namespace Rml {
 namespace Rml {
 
 
-bool Log::Initialise()
-{
-	return true;
-}
-
-void Log::Shutdown() {}
-
 void Log::Message(Log::Type type, const char* fmt, ...)
 void Log::Message(Log::Type type, const char* fmt, ...)
 {
 {
 	const int buffer_size = 1024;
 	const int buffer_size = 1024;