summaryrefslogtreecommitdiff
path: root/toolkit/mozapps/downloads/nsHelperAppDlg.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/mozapps/downloads/nsHelperAppDlg.js')
-rw-r--r--toolkit/mozapps/downloads/nsHelperAppDlg.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/toolkit/mozapps/downloads/nsHelperAppDlg.js b/toolkit/mozapps/downloads/nsHelperAppDlg.js
index 90d38c90b0..0e5cfdaf0e 100644
--- a/toolkit/mozapps/downloads/nsHelperAppDlg.js
+++ b/toolkit/mozapps/downloads/nsHelperAppDlg.js
@@ -675,11 +675,7 @@ nsUnknownContentTypeDialog.prototype = {
// getPath:
getPath: function (aFile) {
-#ifdef XP_MACOSX
- return aFile.leafName || aFile.path;
-#else
return aFile.path;
-#endif
},
// initAppAndSaveToDiskValues:
@@ -987,12 +983,6 @@ nsUnknownContentTypeDialog.prototype = {
return file.getVersionInfoField("FileDescription");
} catch (e) {}
}
-#elifdef XP_MACOSX
- if (file instanceof Components.interfaces.nsILocalFileMac) {
- try {
- return file.bundleDisplayName;
- } catch (e) {}
- }
#endif
return file.leafName;