summaryrefslogtreecommitdiffstats
path: root/src/sp-factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-factory.cpp')
-rw-r--r--src/sp-factory.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/sp-factory.cpp b/src/sp-factory.cpp
deleted file mode 100644
index 27aa6a973..000000000
--- a/src/sp-factory.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#include "sp-factory.h"
-
-//#include <stdexcept>
-
-//#include "sp-object.h"
-//#include "xml/node.h"
-
-
-//SPFactory::TypeNotRegistered::TypeNotRegistered(const std::string& type)
-// : std::exception(), type(type) {
-//}
-//
-//const char* SPFactory::TypeNotRegistered::what() const throw() {
-// return type.c_str();
-//}
-
-//SPFactory& SPFactory::instance() {
-// static SPFactory factory;
-// return factory;
-//}
-
-//bool SPFactory::registerObject(const std::string& id, CreateFunction* createFunction) {
-// return this->objectMap.insert(std::make_pair(id, createFunction)).second;
-//}
-
-//SPObject* SPFactory::createObject(const std::string& id) const {
-// std::map<const std::string, CreateFunction*>::const_iterator it = this->objectMap.find(id);
-//
-// if (it == this->objectMap.end()) {
-// throw TypeNotRegistered(id);
-// }
-//
-// return (*it).second();
-//}