[epiphany] downloads: Remove unused method ephy_download_new()



commit 792120a5cecb76e0426afc442ae7507432c0692b
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Wed Jan 8 11:39:18 2014 +0100

    downloads: Remove unused method ephy_download_new()

 embed/ephy-download.c |   18 +-----------------
 embed/ephy-download.h |    1 -
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index 9f7c158..f4e9d33 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -931,22 +931,6 @@ download_failed_cb (WebKitDownload *wk_download,
 }
 
 /**
- * ephy_download_new:
- * @parent: the #GtkWindow parent of the download, or %NULL
- *
- * Creates a new #EphyDownload. You can use ephy_download_new_for_download and
- * ephy_download_new_for_uri as convenience functions to create #EphyDownload
- * objects.
- *
- * Returns: an #EphyDownload.
- **/
-EphyDownload *
-ephy_download_new (GtkWindow *parent)
-{
-  return g_object_new (EPHY_TYPE_DOWNLOAD, "window", parent, NULL);
-}
-
-/**
  * ephy_download_new_for_download:
  * @download: a #WebKitDownload to wrap
  * @parent: the #GtkWindow parent of the download, or %NULL
@@ -964,7 +948,7 @@ ephy_download_new_for_download (WebKitDownload *download,
 
   g_return_val_if_fail (WEBKIT_IS_DOWNLOAD (download), NULL);
 
-  ephy_download = ephy_download_new (parent);
+  ephy_download = g_object_new (EPHY_TYPE_DOWNLOAD, "window", parent, NULL);
 
   g_signal_connect (download, "decide-destination",
                     G_CALLBACK (download_decide_destination_cb),
diff --git a/embed/ephy-download.h b/embed/ephy-download.h
index 4c85021..59d7616 100644
--- a/embed/ephy-download.h
+++ b/embed/ephy-download.h
@@ -76,7 +76,6 @@ typedef enum
 
 GType         ephy_download_get_type              (void) G_GNUC_CONST;
 
-EphyDownload *ephy_download_new                   (GtkWindow *parent);
 EphyDownload *ephy_download_new_for_uri           (const char *uri,
                                                    GtkWindow *parent);
 EphyDownload *ephy_download_new_for_download      (WebKitDownload *download,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]