summaryrefslogtreecommitdiff
path: root/netwerk/base/src/nsURLParsers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/base/src/nsURLParsers.cpp')
-rw-r--r--netwerk/base/src/nsURLParsers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/netwerk/base/src/nsURLParsers.cpp b/netwerk/base/src/nsURLParsers.cpp
index 03cfd7428..3e6d8db68 100644
--- a/netwerk/base/src/nsURLParsers.cpp
+++ b/netwerk/base/src/nsURLParsers.cpp
@@ -373,7 +373,7 @@ nsNoAuthURLParser::ParseAfterScheme(const char *spec, int32_t specLen,
const char *p = nullptr;
if (specLen > 2) {
// looks like there is an authority section
-#if defined(XP_WIN) || defined(XP_OS2)
+#if defined(XP_WIN)
// if the authority looks like a drive number then we
// really want to treat it as part of the path
// [a-zA-Z][:|]{/\}
@@ -406,7 +406,7 @@ nsNoAuthURLParser::ParseAfterScheme(const char *spec, int32_t specLen,
SET_RESULT(path, pos, specLen - pos);
}
-#if defined(XP_WIN) || defined(XP_OS2)
+#if defined(XP_WIN)
NS_IMETHODIMP
nsNoAuthURLParser::ParseFilePath(const char *filepath, int32_t filepathLen,
uint32_t *directoryPos, int32_t *directoryLen,