From 1765b93250ac3b89947c3da7f0c7266a910367c9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 2 Feb 2008 13:21:22 +0000 Subject: moved ConsoleInterface to libsys --- src/common/consoleinterface.cc | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 src/common/consoleinterface.cc (limited to 'src/common/consoleinterface.cc') diff --git a/src/common/consoleinterface.cc b/src/common/consoleinterface.cc deleted file mode 100644 index eb532c6..0000000 --- a/src/common/consoleinterface.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - common/consoleinterface.cc - This file is part of the Osirion project and is distributed under - the terms of the GNU General Public License version 2 -*/ - -#include "common/consoleinterface.h" - -#include - -#include - -namespace common { - -ConsoleInterface *ConsoleInterface::consoleinterface_instance = 0; - -ConsoleInterface::ConsoleInterface() { - if (consoleinterface_instance) { - std::cerr << "multiple singleton instances: common::ConsoleInterface" << std::endl; - exit(2); - } - consoleinterface_instance = this; -} - -ConsoleInterface::~ConsoleInterface() -{ - consoleinterface_instance = 0; -} - -ConsoleInterface *ConsoleInterface::instance() -{ - return consoleinterface_instance; -} - -} // namespace common - -- cgit v1.2.3