[epiphany] downloads: Remove ephy_download_set_auto_destination()
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] downloads: Remove ephy_download_set_auto_destination()
- Date: Wed, 8 Jan 2014 11:31:30 +0000 (UTC)
commit 064e878a4b1f23539df54b0234b0cb287b0e0c8e
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed Jan 8 11:49:45 2014 +0100
downloads: Remove ephy_download_set_auto_destination()
It's currently no-op.
embed/ephy-download.c | 15 ---------------
embed/ephy-download.h | 1 -
embed/ephy-embed.c | 1 -
src/popup-commands.c | 2 --
4 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index f4e9d33..b87fad5 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 59d7616..3d2fe7f 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 d943f93..5121c90 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 b03d322..efc3b07 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]