diff options
author | Moonchild <moonchild@palemoon.org> | 2021-04-30 21:22:08 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-04-30 21:22:08 +0000 |
commit | 0dd3424f774954627d6f53df9fb47379d9b5c871 (patch) | |
tree | d8c303bac59a5bbbbc6c6f5e541a01dec1a5ae49 /dom/plugins/base/nsPluginHost.cpp | |
parent | 5e705bd5059da5b7a39e3a096b7c7f59cb466730 (diff) | |
download | uxp-0dd3424f774954627d6f53df9fb47379d9b5c871.tar.gz |
Issue #1751 -- Remove XP_MACOSX conditionals from /dom
Diffstat (limited to 'dom/plugins/base/nsPluginHost.cpp')
-rw-r--r-- | dom/plugins/base/nsPluginHost.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/dom/plugins/base/nsPluginHost.cpp b/dom/plugins/base/nsPluginHost.cpp index 1b98855d1f..482a201f8f 100644 --- a/dom/plugins/base/nsPluginHost.cpp +++ b/dom/plugins/base/nsPluginHost.cpp @@ -33,9 +33,6 @@ #include "nsProtocolProxyService.h" #include "nsIStreamConverterService.h" #include "nsIFile.h" -#if defined(XP_MACOSX) -#include "nsILocalFileMac.h" -#endif #include "nsISeekableStream.h" #include "nsNetUtil.h" #include "nsIFileStreams.h" @@ -1925,19 +1922,7 @@ int64_t GetPluginLastModifiedTime(const nsCOMPtr<nsIFile>& localfile) { PRTime fileModTime = 0; -#if defined(XP_MACOSX) - // On OS X the date of a bundle's "contents" (i.e. of its Info.plist file) - // is a much better guide to when it was last modified than the date of - // its package directory. See bug 313700. - nsCOMPtr<nsILocalFileMac> localFileMac = do_QueryInterface(localfile); - if (localFileMac) { - localFileMac->GetBundleContentsLastModifiedTime(&fileModTime); - } else { - localfile->GetLastModifiedTime(&fileModTime); - } -#else localfile->GetLastModifiedTime(&fileModTime); -#endif return fileModTime; } |