summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-28 17:58:46 -0500
committerMatt A. Tobin <email@mattatobin.com>2020-02-28 17:58:46 -0500
commit6a3d5769d01ec1a8dd56ea79aec2df91b801ce02 (patch)
tree79e44798b532d24d205822e36df1912ea6f2e4db /toolkit
parent1d86d378281ebd519442ff11b703081444a12169 (diff)
downloadUXP-6a3d5769d01ec1a8dd56ea79aec2df91b801ce02.tar
UXP-6a3d5769d01ec1a8dd56ea79aec2df91b801ce02.tar.gz
UXP-6a3d5769d01ec1a8dd56ea79aec2df91b801ce02.tar.lz
UXP-6a3d5769d01ec1a8dd56ea79aec2df91b801ce02.tar.xz
UXP-6a3d5769d01ec1a8dd56ea79aec2df91b801ce02.zip
Issue #190 - Part 1: Remove XP_IOS conditional code
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/xre/UIKitDirProvider.h13
-rw-r--r--toolkit/xre/nsXREDirProvider.cpp11
2 files changed, 0 insertions, 24 deletions
diff --git a/toolkit/xre/UIKitDirProvider.h b/toolkit/xre/UIKitDirProvider.h
deleted file mode 100644
index c74596125..000000000
--- a/toolkit/xre/UIKitDirProvider.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-#ifndef TOOLKIT_XRE_UIKITDIRPROVIDER_H_
-#define TOOLKIT_XRE_UIKITDIRPROVIDER_H_
-
-#include "nsString.h"
-
-bool GetUIKitDirectory(bool aLocal, nsACString& aUserDir);
-
-#endif // TOOLKIT_XRE_UIKITDIRPROVIDER_H_
diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp
index 151eb34e5..158fe541b 100644
--- a/toolkit/xre/nsXREDirProvider.cpp
+++ b/toolkit/xre/nsXREDirProvider.cpp
@@ -58,9 +58,6 @@
#ifdef XP_UNIX
#include <ctype.h>
#endif
-#ifdef XP_IOS
-#include "UIKitDirProvider.h"
-#endif
#if defined(XP_MACOSX)
#define APP_REGISTRY_NAME "Application Registry"
@@ -1310,14 +1307,6 @@ nsXREDirProvider::GetUserDataDirectoryHome(nsIFile** aFile, bool aLocal)
NS_ENSURE_SUCCESS(rv, rv);
localDir = do_QueryInterface(dirFileMac, &rv);
-#elif defined(XP_IOS)
- nsAutoCString userDir;
- if (GetUIKitDirectory(aLocal, userDir)) {
- rv = NS_NewNativeLocalFile(userDir, true, getter_AddRefs(localDir));
- } else {
- rv = NS_ERROR_FAILURE;
- }
- NS_ENSURE_SUCCESS(rv, rv);
#elif defined(XP_WIN)
nsString path;
if (aLocal) {