summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2014-01-08 11:49:45 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2014-01-08 12:31:01 +0100
commit064e878a4b1f23539df54b0234b0cb287b0e0c8e (patch)
treeb6ac16a7416d34923ef35376fff9964a6d153e58
parent792120a5cecb76e0426afc442ae7507432c0692b (diff)
downloadepiphany-064e878a4b1f23539df54b0234b0cb287b0e0c8e.tar.gz
downloads: Remove ephy_download_set_auto_destination()
It's currently no-op.
-rw-r--r--embed/ephy-download.c15
-rw-r--r--embed/ephy-download.h1
-rw-r--r--embed/ephy-embed.c1
-rw-r--r--src/popup-commands.c2
4 files changed, 0 insertions, 19 deletions
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index f4e9d331c..b87fad59d 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -368,18 +368,6 @@ ephy_download_set_destination_uri (EphyDownload *download,
}
/**
- * ephy_download_set_auto_destination:
- * @download: an #EphyDownload
- *
- * Tells @download to automatically determine a destination for itself.
- **/
-void
-ephy_download_set_auto_destination (EphyDownload *download)
-{
- /* TODO: in WebKit2 priv->destination == NULL means auto_destination, remove this? */
-}
-
-/**
* ephy_download_set_action:
* @download: an #EphyDownload
* @action: #EphyDownloadActionType to execute
@@ -554,9 +542,6 @@ ephy_download_start (EphyDownload *download)
priv = download->priv;
priv->start_time = gtk_get_current_event_time ();
-
- if (priv->destination == NULL)
- ephy_download_set_auto_destination (download);
}
/**
diff --git a/embed/ephy-download.h b/embed/ephy-download.h
index 59d7616a1..3d2fe7f0e 100644
--- a/embed/ephy-download.h
+++ b/embed/ephy-download.h
@@ -85,7 +85,6 @@ EphyDownload *ephy_download_new_for_download (WebKitDownload *download,
void ephy_download_start (EphyDownload *download);
void ephy_download_cancel (EphyDownload *download);
-void ephy_download_set_auto_destination (EphyDownload *download);
void ephy_download_set_destination_uri (EphyDownload *download,
const char *destination);
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index d943f9330..5121c90c1 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -487,7 +487,6 @@ ephy_embed_auto_download_url (EphyEmbed *embed, const char *url)
EphyDownload *download;
download = ephy_download_new_for_uri (url, NULL);
- ephy_download_set_auto_destination (download);
ephy_download_set_action (download, EPHY_DOWNLOAD_ACTION_OPEN);
}
diff --git a/src/popup-commands.c b/src/popup-commands.c
index b03d322bd..efc3b0716 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -161,8 +161,6 @@ save_property_url_to_destination (EphyWindow *window,
if (destination)
ephy_download_set_destination_uri (download, destination);
- else
- ephy_download_set_auto_destination (download);
ephy_download_start (download);
}