[!] Cleanup of dead GNOMEVFS code.

Ideally GConf should be cleaned up in the future.
This commit is contained in:
S. Nordin
2015-11-04 03:45:09 -05:00
parent 28948009bf
commit bb52005b92
6 changed files with 7 additions and 42 deletions
-30
View File
@@ -1,30 +0,0 @@
# vim:set ts=8 sw=8 sts=8 noet:
# 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/.
DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
SHORT_LIBNAME = nkgnomevfs
IS_COMPONENT = 1
LOCAL_INCLUDES = $(MOZ_GNOMEVFS_CFLAGS)
EXTRA_DSO_LDOPTS = \
$(XPCOM_GLUE_LDOPTS) \
$(NSPR_LIBS) \
$(MOZ_GNOMEVFS_LIBS) \
$(NULL)
# make sure this component is never statically linked into the main
# application. this is necessary since we don't want to force users
# to install gnome-vfs2 in order to use the rest of mozilla ;-)
FORCE_SHARED_LIB= 1
include $(topsrcdir)/config/rules.mk
-2
View File
@@ -18,7 +18,6 @@ EXTRA_DSO_LDOPTS += \
$(XPCOM_FROZEN_LDOPTS) \
$(NSPR_LIBS) \
$(MOZ_GCONF_LIBS) \
$(MOZ_GNOMEVFS_LIBS) \
$(GLIB_LIBS) \
$(MOZ_GIO_LIBS) \
$(NULL)
@@ -29,7 +28,6 @@ include $(topsrcdir)/config/rules.mk
CXXFLAGS += \
$(MOZ_GCONF_CFLAGS) \
$(MOZ_GNOMEVFS_CFLAGS) \
$(MOZ_GIO_CFLAGS) \
$(GLIB_CFLAGS) \
$(NULL)
-3
View File
@@ -68,9 +68,6 @@ LOCAL_INCLUDES += $(MOZ_PLATFORM_MAEMO_CFLAGS)
endif
ifeq ($(MOZ_PLATFORM_MAEMO),5)
ifdef MOZ_ENABLE_GNOMEVFS
LOCAL_INCLUDES += $(MOZ_GNOMEVFS_CFLAGS)
endif
ifdef MOZ_ENABLE_GIO
LOCAL_INCLUDES += $(MOZ_GIO_CFLAGS)
endif
+5 -5
View File
@@ -4,7 +4,7 @@
* 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/. */
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
#if (MOZ_PLATFORM_MAEMO == 5)
#include <glib.h>
#include <hildon-uri.h>
#include <hildon-mime.h>
@@ -35,7 +35,7 @@ nsMIMEInfoUnix::LoadUriInternal(nsIURI * aURI)
{
nsresult rv = nsGNOMERegistry::LoadURL(aURI);
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
#if (MOZ_PLATFORM_MAEMO == 5)
if (NS_FAILED(rv)){
HildonURIAction *action = hildon_uri_get_default_action(mSchemeOrType.get(), nullptr);
if (action) {
@@ -85,7 +85,7 @@ nsMIMEInfoUnix::GetHasDefaultHandler(bool *_retval)
if (*_retval)
return NS_OK;
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
#if (MOZ_PLATFORM_MAEMO == 5)
HildonURIAction *action = hildon_uri_get_default_action(mSchemeOrType.get(), nullptr);
if (action) {
*_retval = true;
@@ -118,7 +118,7 @@ nsMIMEInfoUnix::LaunchDefaultWithFile(nsIFile *aFile)
nsAutoCString nativePath;
aFile->GetNativePath(nativePath);
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
#if (MOZ_PLATFORM_MAEMO == 5)
if(NS_SUCCEEDED(LaunchDefaultWithDBus(PromiseFlatCString(nativePath).get())))
return NS_OK;
#endif
@@ -157,7 +157,7 @@ nsMIMEInfoUnix::LaunchDefaultWithFile(nsIFile *aFile)
return app->Launch(uriSpec);
}
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
#if (MOZ_PLATFORM_MAEMO == 5)
/* This method tries to launch the associated default handler for the given
* mime/file via hildon specific APIs (in this case hildon_mime_open_file*
+1 -1
View File
@@ -24,7 +24,7 @@ protected:
virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI);
virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile *aFile);
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
#if (MOZ_PLATFORM_MAEMO == 5)
nsresult LaunchDefaultWithDBus(const char *aFilePath);
NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleAppHandlers);
#endif
@@ -1163,7 +1163,7 @@ nsresult nsOSHelperAppService::OSProtocolHandlerExists(const char * aProtocolSch
#ifdef MOZ_WIDGET_GTK
// Check the GNOME registry for a protocol handler
*aHandlerExists = nsGNOMERegistry::HandlerExists(aProtocolScheme);
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
#if (MOZ_PLATFORM_MAEMO == 5)
*aHandlerExists = nsMIMEInfoUnix::HandlerExists(aProtocolScheme);
#endif
#endif