aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/fs.cpp2
-rw-r--r--backends/fs/fs.h10
-rw-r--r--backends/fs/posix/posix-fs.cpp2
3 files changed, 6 insertions, 8 deletions
diff --git a/backends/fs/fs.cpp b/backends/fs/fs.cpp
index b9fa14edff..8b847a05d0 100644
--- a/backends/fs/fs.cpp
+++ b/backends/fs/fs.cpp
@@ -55,12 +55,10 @@ FilesystemNode::FilesystemNode(const FilesystemNode &node)
++(*_refCount);
}
-#ifdef MACOSX
FilesystemNode::FilesystemNode(const String &p) {
_realNode = getNodeForPath(p);
_refCount = new int(1);
}
-#endif
FilesystemNode::~FilesystemNode() {
decRefCount();
diff --git a/backends/fs/fs.h b/backends/fs/fs.h
index f0c568ebc3..302027ba45 100644
--- a/backends/fs/fs.h
+++ b/backends/fs/fs.h
@@ -166,23 +166,25 @@ private:
*/
static AbstractFilesystemNode *getRoot();
-#ifdef MACOSX
/*
* Construct a node based on a path; the path is in the same format as it
* would be for calls to fopen().
*
* I.e. getNodeForPath(oldNode.path()) should create a new node identical to oldNode.
+ *
+ * @TODO: This is of course a place where non-portable code easily will sneak
+ * in, because the format of the path used here is not well-defined.
+ * So we really should reconsider this API and try to come up with
+ * something which is more portable but still flexible enough for our
+ * purposes.
*/
static AbstractFilesystemNode *getNodeForPath(const String &path);
-#endif
public:
FilesystemNode();
FilesystemNode(const FilesystemNode &node);
-#ifdef MACOSX
FilesystemNode(const String &path);
-#endif
~FilesystemNode();
FilesystemNode &operator =(const FilesystemNode &node);
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp
index ba28fd4a41..8673ea28d0 100644
--- a/backends/fs/posix/posix-fs.cpp
+++ b/backends/fs/posix/posix-fs.cpp
@@ -82,11 +82,9 @@ AbstractFilesystemNode *FilesystemNode::getRoot() {
return new POSIXFilesystemNode();
}
-#ifdef MACOSX
AbstractFilesystemNode *FilesystemNode::getNodeForPath(const String &path) {
return new POSIXFilesystemNode(path);
}
-#endif
POSIXFilesystemNode::POSIXFilesystemNode() {
#ifndef __DC__