aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/posix
diff options
context:
space:
mode:
Diffstat (limited to 'backends/fs/posix')
-rw-r--r--backends/fs/posix/posix-fs-factory.cpp18
-rw-r--r--backends/fs/posix/posix-fs-factory.h27
2 files changed, 0 insertions, 45 deletions
diff --git a/backends/fs/posix/posix-fs-factory.cpp b/backends/fs/posix/posix-fs-factory.cpp
deleted file mode 100644
index bed3dc5f8f..0000000000
--- a/backends/fs/posix/posix-fs-factory.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "backends/fs/posix/posix-fs-factory.h"
-#include "backends/fs/posix/posix-fs.cpp"
-
-DECLARE_SINGLETON(POSIXFilesystemFactory);
-
-AbstractFilesystemNode *POSIXFilesystemFactory::makeRootFileNode() const {
- return new POSIXFilesystemNode();
-}
-
-AbstractFilesystemNode *POSIXFilesystemFactory::makeCurrentDirectoryFileNode() const {
- char buf[MAXPATHLEN];
- getcwd(buf, MAXPATHLEN);
- return new POSIXFilesystemNode(buf, true);
-}
-
-AbstractFilesystemNode *POSIXFilesystemFactory::makeFileNodePath(const String &path) const {
- return new POSIXFilesystemNode(path, true);
-}
diff --git a/backends/fs/posix/posix-fs-factory.h b/backends/fs/posix/posix-fs-factory.h
deleted file mode 100644
index 93f0ac115b..0000000000
--- a/backends/fs/posix/posix-fs-factory.h
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef POSIX_FILESYSTEM_FACTORY_H
-#define POSIX_FILESYSTEM_FACTORY_H
-
-#include "common/singleton.h"
-#include "backends/fs/abstract-fs-factory.h"
-
-/**
- * Creates POSIXFilesystemNode objects.
- *
- * Parts of this class are documented in the base interface class, AbstractFilesystemFactory.
- */
-class POSIXFilesystemFactory : public AbstractFilesystemFactory, public Common::Singleton<POSIXFilesystemFactory> {
-public:
- typedef Common::String String;
-
- virtual AbstractFilesystemNode *makeRootFileNode() const;
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const;
-
-protected:
- POSIXFilesystemFactory() {};
-
-private:
- friend class Common::Singleton<SingletonBaseType>;
-};
-
-#endif /*POSIX_FILESYSTEM_FACTORY_H*/