diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-history.c | 6 | ||||
-rw-r--r-- | embed/mozilla/GlobalHistory.cpp | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/embed/ephy-history.c b/embed/ephy-history.c index 525e13326..f93982aad 100644 --- a/embed/ephy-history.c +++ b/embed/ephy-history.c @@ -860,12 +860,6 @@ ephy_history_clear (EphyHistory *gh) ephy_node_unref (node); } - /* The first node is All, dont unref it */ - while ((node = ephy_node_get_nth_child (gh->priv->hosts, 1)) != NULL) - { - ephy_node_unref (node); - } - ephy_history_save (gh); } diff --git a/embed/mozilla/GlobalHistory.cpp b/embed/mozilla/GlobalHistory.cpp index 09c2c994a..034c8a94c 100644 --- a/embed/mozilla/GlobalHistory.cpp +++ b/embed/mozilla/GlobalHistory.cpp @@ -16,6 +16,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include "ephy-embed-shell.h" #include "GlobalHistory.h" #include "nsCOMPtr.h" @@ -103,6 +107,8 @@ NS_IMETHODIMP MozGlobalHistory::GetCount(PRUint32 *aCount) { return NS_ERROR_NOT_IMPLEMENTED; } + +#if MOZILLA_SNAPSHOT <= 7 /* void startBatchUpdate (); */ NS_IMETHODIMP MozGlobalHistory::StartBatchUpdate() @@ -116,6 +122,8 @@ NS_IMETHODIMP MozGlobalHistory::EndBatchUpdate() return NS_ERROR_NOT_IMPLEMENTED; } +#endif + /* void markPageAsTyped (in string url); */ NS_IMETHODIMP MozGlobalHistory::MarkPageAsTyped(const char *url) { |