diff options
-rw-r--r-- | browser/GeckoBrowserPersist.cpp | 4 | ||||
-rw-r--r-- | browser/GeckoDocumentObject.cpp | 4 | ||||
-rw-r--r-- | browser/GeckoDownload.cpp | 6 | ||||
-rw-r--r-- | browser/GeckoDragDropHooks.cpp | 4 | ||||
-rw-r--r-- | browser/sugar-browser.cpp | 13 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | sugar/browser/xulrunner.cpp | 5 |
7 files changed, 0 insertions, 38 deletions
diff --git a/browser/GeckoBrowserPersist.cpp b/browser/GeckoBrowserPersist.cpp index a614e4d..0a4b7f3 100644 --- a/browser/GeckoBrowserPersist.cpp +++ b/browser/GeckoBrowserPersist.cpp @@ -1,7 +1,5 @@ #include <config.h> -#ifdef HAVE_GECKO_1_9 - #include <stdio.h> #include <gtkmozembed.h> @@ -183,5 +181,3 @@ GeckoBrowserPersist::SaveURI(const char *uri, const char *filename) return TRUE; } - -#endif diff --git a/browser/GeckoDocumentObject.cpp b/browser/GeckoDocumentObject.cpp index 26eb13d..260b964 100644 --- a/browser/GeckoDocumentObject.cpp +++ b/browser/GeckoDocumentObject.cpp @@ -1,7 +1,5 @@ #include <config.h> -#ifdef HAVE_GECKO_1_9 - #include <unistd.h> #include <glib.h> @@ -237,5 +235,3 @@ GeckoDocumentObject::SaveImage(const char *filename) GeckoBrowserPersist browserPersist(mBrowser); return browserPersist.SaveURI(mImageURI.get(), filename); } - -#endif diff --git a/browser/GeckoDownload.cpp b/browser/GeckoDownload.cpp index 6f099bd..2ec1fe4 100644 --- a/browser/GeckoDownload.cpp +++ b/browser/GeckoDownload.cpp @@ -86,7 +86,6 @@ GeckoDownload::OnStateChange(nsIWebProgress *aWebProgress, mMIMEInfo->GetMIMEType(mimeType); mSource->GetSpec(url); -#ifdef HAVE_GECKO_1_9 /* If the file is application/octet-stream, look up a better mime type from the extension. */ if(mimeType.Equals(APPLICATION_OCTET_STREAM)) { @@ -106,7 +105,6 @@ GeckoDownload::OnStateChange(nsIWebProgress *aWebProgress, } } } -#endif sugar_download_manager_download_started(download_manager, url.get(), @@ -187,8 +185,6 @@ GeckoDownload::OnSecurityChange (nsIWebProgress *aWebProgress, return NS_OK; } -#ifdef HAVE_GECKO_1_9 - NS_IMETHODIMP GeckoDownload::OnRefreshAttempted (nsIWebProgress *aWebProgress, nsIURI *aRefreshURI, @@ -199,8 +195,6 @@ GeckoDownload::OnRefreshAttempted (nsIWebProgress *aWebProgress, return NS_OK; } -#endif - //***************************************************************************** // GeckoDownloadFactory //***************************************************************************** diff --git a/browser/GeckoDragDropHooks.cpp b/browser/GeckoDragDropHooks.cpp index 6439f42..995ee87 100644 --- a/browser/GeckoDragDropHooks.cpp +++ b/browser/GeckoDragDropHooks.cpp @@ -1,7 +1,5 @@ #include <config.h> -#ifdef HAVE_GECKO_1_9 - #include <sys/time.h> #include <time.h> @@ -214,5 +212,3 @@ GeckoDragDropHooks::OnPasteOrDrop(nsIDOMEvent *event, nsITransferable *trans, { return NS_ERROR_NOT_IMPLEMENTED; } - -#endif diff --git a/browser/sugar-browser.cpp b/browser/sugar-browser.cpp index d997fff..4afbeaa 100644 --- a/browser/sugar-browser.cpp +++ b/browser/sugar-browser.cpp @@ -23,13 +23,10 @@ #include "sugar-marshal.h" #include "GeckoContentHandler.h" #include "GeckoDownload.h" - -#ifdef HAVE_GECKO_1_9 #include "GeckoDragDropHooks.h" #include "GeckoDocumentObject.h" #include "GeckoBrowserPersist.h" #include "GeckoDirectoryProvider.h" -#endif #include <gdk/gdkx.h> #include <gtkmozembed_internal.h> @@ -591,7 +588,6 @@ location_cb(GtkMozEmbed *embed) static gboolean dom_mouse_click_cb(GtkMozEmbed *embed, nsIDOMMouseEvent *mouseEvent) { -#ifdef HAVE_GECKO_1_9 SugarBrowser *browser = SUGAR_BROWSER(embed); SugarBrowserEvent *event; gint return_value = FALSE; @@ -621,9 +617,6 @@ dom_mouse_click_cb(GtkMozEmbed *embed, nsIDOMMouseEvent *mouseEvent) sugar_browser_event_free(event); return return_value; -#else - return FALSE; -#endif } static void @@ -650,7 +643,6 @@ sugar_browser_scroll_pixels(SugarBrowser *browser, int dx, int dy) { -#ifndef HAVE_GECKO_1_9 nsCOMPtr<nsIWebBrowser> webBrowser; gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED(browser), getter_AddRefs(webBrowser)); @@ -668,7 +660,6 @@ sugar_browser_scroll_pixels(SugarBrowser *browser, NS_ENSURE_TRUE (DOMWindow, ); DOMWindow->ScrollBy (dx, dy); -#endif } void @@ -690,12 +681,8 @@ sugar_browser_save_uri(SugarBrowser *browser, const char *uri, const char *filename) { -#ifdef HAVE_GECKO_1_9 GeckoBrowserPersist browserPersist(browser); return browserPersist.SaveURI(uri, filename); -#else - return FALSE; -#endif } gboolean diff --git a/configure.ac b/configure.ac index 5376c3f..4e6ddba 100644 --- a/configure.ac +++ b/configure.ac @@ -57,8 +57,6 @@ AC_SUBST(MOZILLA_INCLUDE_DIR) AC_SUBST(XPIDL) AC_SUBST(MOZILLA_IDL_DIR) -AC_DEFINE([HAVE_GECKO_1_9],[1],[Define if we have gecko 1.9]) - PKG_CHECK_MODULES(NSPR, [nspr], [have_nspr=true], [ diff --git a/sugar/browser/xulrunner.cpp b/sugar/browser/xulrunner.cpp index 1880e3b..f7dc0fd 100644 --- a/sugar/browser/xulrunner.cpp +++ b/sugar/browser/xulrunner.cpp @@ -21,15 +21,11 @@ #include <string.h> -#ifdef HAVE_GECKO_1_9 #include "gtkmozembed_glue.cpp" -#endif extern "C" int xulrunner_startup(void) { -#ifdef HAVE_GECKO_1_9 - static const GREVersionRange greVersion = { "1.9a", PR_TRUE, "2", PR_TRUE @@ -61,5 +57,4 @@ xulrunner_startup(void) *lastSlash = '\0'; gtk_moz_embed_set_path(xpcomPath); -#endif } |