aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/posix/posix-fs-factory.h
diff options
context:
space:
mode:
authorMax Horn2008-08-22 11:36:47 +0000
committerMax Horn2008-08-22 11:36:47 +0000
commitb727ac880d237cbe10284c2da9db25998ab6eb11 (patch)
tree25a82244455fca9b5181835f6d5fa1391b6dbba7 /backends/fs/posix/posix-fs-factory.h
parent74238bb53aeca5b3e22ef783689fed255264800b (diff)
downloadscummvm-rg350-b727ac880d237cbe10284c2da9db25998ab6eb11.tar.gz
scummvm-rg350-b727ac880d237cbe10284c2da9db25998ab6eb11.tar.bz2
scummvm-rg350-b727ac880d237cbe10284c2da9db25998ab6eb11.zip
Turned Windows, AmigaOS and POSIX FSFactories into plain classes; no need for them to be singletons (actually true for all other FS factories)
svn-id: r34098
Diffstat (limited to 'backends/fs/posix/posix-fs-factory.h')
-rw-r--r--backends/fs/posix/posix-fs-factory.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/backends/fs/posix/posix-fs-factory.h b/backends/fs/posix/posix-fs-factory.h
index d8eecda6ef..c697679814 100644
--- a/backends/fs/posix/posix-fs-factory.h
+++ b/backends/fs/posix/posix-fs-factory.h
@@ -25,7 +25,6 @@
#ifndef POSIX_FILESYSTEM_FACTORY_H
#define POSIX_FILESYSTEM_FACTORY_H
-#include "common/singleton.h"
#include "backends/fs/fs-factory.h"
/**
@@ -33,19 +32,10 @@
*
* Parts of this class are documented in the base interface class, FilesystemFactory.
*/
-class POSIXFilesystemFactory : public FilesystemFactory, public Common::Singleton<POSIXFilesystemFactory> {
-public:
- typedef Common::String String;
-
+class POSIXFilesystemFactory : public FilesystemFactory {
virtual AbstractFilesystemNode *makeRootFileNode() const;
virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const;
-
-protected:
- POSIXFilesystemFactory() {};
-
-private:
- friend class Common::Singleton<SingletonBaseType>;
+ virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
};
#endif /*POSIX_FILESYSTEM_FACTORY_H*/