summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@heap.zone>2018-02-15 01:35:54 +0100
committerJonathan Schleifer <js@heap.zone>2018-02-15 01:35:54 +0100
commit154a1860929be8dceeebbf41fd7cc521d5c0ac66 (patch)
tree3d6cb480a64c708fad840802b94d1bfc78b129f7
parent8455e94e2a61e2539ae82465024bbac728354a21 (diff)
OFData: Fix #ifdef
-rw-r--r--src/OFData.h2
-rw-r--r--src/OFData.m2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/OFData.h b/src/OFData.h
index e8e05ea4..2ba3103e 100644
--- a/src/OFData.h
+++ b/src/OFData.h
@@ -150,7 +150,6 @@ enum {
+ (instancetype)dataWithContentsOfFile: (OFString *)path;
#endif
-#if defined(OF_HAVE_FILES) || defined(OF_HAVE_SOCKETS)
/*!
* @brief Creates a new OFData with an item size of 1, containing the data of
* the specified URL.
@@ -159,7 +158,6 @@ enum {
* @return A new autoreleased OFData
*/
+ (instancetype)dataWithContentsOfURL: (OFURL *)URL;
-#endif
/*!
* @brief Creates a new OFData with an item size of 1, containing the data of
diff --git a/src/OFData.m b/src/OFData.m
index 588385ff..c66bee35 100644
--- a/src/OFData.m
+++ b/src/OFData.m
@@ -99,12 +99,10 @@ _references_to_categories_of_OFData(void)
}
#endif
-#if defined(OF_HAVE_FILES) || defined(OF_HAVE_SOCKETS)
+ (instancetype)dataWithContentsOfURL: (OFURL *)URL
{
return [[[self alloc] initWithContentsOfURL: URL] autorelease];
}
-#endif
+ (instancetype)dataWithStringRepresentation: (OFString *)string
{