diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2016-03-05 13:05:31 -0600 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2016-03-06 14:11:25 -0600 |
commit | 1b015a69ecad4ec9930b3cc2d9c070ab6c18e5c7 (patch) | |
tree | 61b867285e76865ead777c7bb501bd7cea9a0071 | |
parent | fff5e08b204896fbeca5773137226e841cd50800 (diff) | |
download | epiphany-1b015a69ecad4ec9930b3cc2d9c070ab6c18e5c7.tar.gz |
download: Get rid of EPHY_DOWNLOAD_ACTION_DO_NOTHING
This differs from EPHY_DOWNLOAD_ACTION_NONE in that it explicitly
informs EphyDownload that it should not perform any download action.
Maybe that was actually important in the past, but nowadays there's
absolutely no difference, so just get rid of it.
https://bugzilla.gnome.org/show_bug.cgi?id=610586
-rw-r--r-- | embed/ephy-download.c | 4 | ||||
-rw-r--r-- | embed/ephy-download.h | 3 | ||||
-rw-r--r-- | src/popup-commands.c | 1 | ||||
-rw-r--r-- | tests/ephy-download-test.c | 1 |
4 files changed, 1 insertions, 8 deletions
diff --git a/embed/ephy-download.c b/embed/ephy-download.c index cf88bfe2e..1bebdcefb 100644 --- a/embed/ephy-download.c +++ b/embed/ephy-download.c @@ -486,10 +486,6 @@ ephy_download_do_download_action (EphyDownload *download, LOG ("ephy_download_do_download_action: none"); ret = TRUE; break; - case EPHY_DOWNLOAD_ACTION_DO_NOTHING: - LOG ("ephy_download_do_download_action: nothing"); - ret = TRUE; - break; default: LOG ("ephy_download_do_download_action: unhandled action"); ret = FALSE; diff --git a/embed/ephy-download.h b/embed/ephy-download.h index 6cda010bd..0843ea430 100644 --- a/embed/ephy-download.h +++ b/embed/ephy-download.h @@ -37,8 +37,7 @@ typedef enum EPHY_DOWNLOAD_ACTION_NONE, EPHY_DOWNLOAD_ACTION_AUTO, EPHY_DOWNLOAD_ACTION_BROWSE_TO, - EPHY_DOWNLOAD_ACTION_OPEN, - EPHY_DOWNLOAD_ACTION_DO_NOTHING + EPHY_DOWNLOAD_ACTION_OPEN } EphyDownloadActionType; EphyDownload *ephy_download_new (WebKitDownload *download); diff --git a/src/popup-commands.c b/src/popup-commands.c index 1ed949c29..1f75a3dcd 100644 --- a/src/popup-commands.c +++ b/src/popup-commands.c @@ -308,7 +308,6 @@ popup_cmd_set_image_as_background (GtkAction *action, dest_uri = g_filename_to_uri (dest, NULL, NULL); ephy_download_set_destination_uri (download, dest_uri); - ephy_download_set_action (download, EPHY_DOWNLOAD_ACTION_DO_NOTHING); ephy_downloads_manager_add_download (ephy_embed_shell_get_downloads_manager (ephy_embed_shell_get_default ()), download); g_object_unref (download); diff --git a/tests/ephy-download-test.c b/tests/ephy-download-test.c index 4262245b5..72990378f 100644 --- a/tests/ephy-download-test.c +++ b/tests/ephy-download-test.c @@ -152,7 +152,6 @@ test_ephy_download_start (Fixture *fixture, gconstpointer data) g_signal_connect (G_OBJECT (fixture->download), "completed", G_CALLBACK (completed_cb), fixture); - ephy_download_set_action (fixture->download, EPHY_DOWNLOAD_ACTION_DO_NOTHING); g_main_loop_run (fixture->loop); } |