Skip to content

Commit

Permalink
Reverted LegacyCore::logAs()
Browse files Browse the repository at this point in the history
The de::Log section stack relies on the C++ scoping mechanism
and cannot be accessed via the C wrapper.
  • Loading branch information
skyjake committed Jul 24, 2012
1 parent c932145 commit c7142ca
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 26 deletions.
1 change: 0 additions & 1 deletion doomsday/libdeng2/include/de/c_wrapper.h
Expand Up @@ -80,7 +80,6 @@ DENG2_PUBLIC void LegacyCore_Stop(int exitCode);
DENG2_PUBLIC void LegacyCore_Timer(unsigned int milliseconds, void (*callback)(void));
DENG2_PUBLIC int LegacyCore_SetLogFile(const char* filePath);
DENG2_PUBLIC const char* LegacyCore_LogFile();
DENG2_PUBLIC void LegacyCore_LogAs(const char* sectionName);
DENG2_PUBLIC void LegacyCore_PrintLogFragment(const char* text);
DENG2_PUBLIC void LegacyCore_PrintfLogFragmentAtLevel(legacycore_loglevel_t level, const char* format, ...);
DENG2_PUBLIC void LegacyCore_SetTerminateFunc(void (*func)(const char*));
Expand Down
10 changes: 0 additions & 10 deletions doomsday/libdeng2/include/de/legacy/legacycore.h
Expand Up @@ -23,7 +23,6 @@
#include "../libdeng2.h"
#include "../App"
#include "../Log"
#include "../String"

namespace de {

Expand Down Expand Up @@ -121,15 +120,6 @@ class DENG2_PUBLIC LegacyCore : public QObject
*/
const char* logFileName() const;

/**
* Begins a new section in the log. Sections can be nested.
*
* @param sectionName Name of the section. No copy of this string is made,
* so it must exist while the section is in use.
*/
void logAs(const char* sectionName);
void logAs(const String sectionName);

/**
* Prints a fragment of text to the output log. The output is added to the log
* only when a complete line has been printed (i.e., newline character required).
Expand Down
5 changes: 0 additions & 5 deletions doomsday/libdeng2/src/c_wrapper.cpp
Expand Up @@ -119,11 +119,6 @@ const char* LegacyCore_LogFile()
return DENG2_LEGACYCORE().logFileName();
}

void LegacyCore_LogAs(const char* sectionName)
{
DENG2_LEGACYCORE().logAs(sectionName);
}

void LegacyCore_PrintLogFragment(const char* text)
{
DENG2_LEGACYCORE().printLogFragment(text);
Expand Down
10 changes: 0 additions & 10 deletions doomsday/libdeng2/src/legacy/legacycore.cpp
Expand Up @@ -218,16 +218,6 @@ const char *LegacyCore::logFileName() const
return d->logName.c_str();
}

void LegacyCore::logAs(const char* sectionName)
{
LOG_AS(sectionName);
}

void LegacyCore::logAs(const String sectionName)
{
LOG_AS_STRING(sectionName);
}

void LegacyCore::printLogFragment(const char* text, Log::LogLevel level)
{
d->currentLogLine += text;
Expand Down

0 comments on commit c7142ca

Please sign in to comment.