[gnome-commander/Implement_CppCheck_suggestions] Remove unused methods



commit e3e6699f6383268124b72db6bba717fead83be32
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Tue Apr 9 22:02:41 2019 +0200

    Remove unused methods

 libgcmd/gnome-cmd-string-dialog.cc | 11 +--------
 libgcmd/gnome-cmd-string-dialog.h  |  2 --
 src/gnome-cmd-cmdline.cc           |  8 -------
 src/gnome-cmd-cmdline.h            |  2 --
 src/gnome-cmd-con-list.cc          | 24 --------------------
 src/gnome-cmd-con-list.h           |  1 -
 src/gnome-cmd-con.cc               |  8 -------
 src/gnome-cmd-con.h                |  2 --
 src/gnome-cmd-data.cc              | 46 --------------------------------------
 src/gnome-cmd-data.h               |  6 -----
 src/gnome-cmd-dir.cc               | 20 -----------------
 src/gnome-cmd-dir.h                |  2 --
 src/gnome-cmd-file.cc              | 45 -------------------------------------
 src/gnome-cmd-file.h               |  7 +-----
 src/gnome-cmd-menu-button.cc       |  6 -----
 src/gnome-cmd-menu-button.h        |  1 -
 src/intviewer/search-dlg.cc        | 19 +---------------
 src/intviewer/search-dlg.h         |  2 --
 src/intviewer/viewer-widget.cc     | 25 ---------------------
 src/intviewer/viewer-widget.h      |  2 --
 src/utils.cc                       | 17 ++------------
 src/utils.h                        |  1 -
 22 files changed, 5 insertions(+), 252 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-string-dialog.cc b/libgcmd/gnome-cmd-string-dialog.cc
index 47168e26..1ecff5c1 100644
--- a/libgcmd/gnome-cmd-string-dialog.cc
+++ b/libgcmd/gnome-cmd-string-dialog.cc
@@ -1,4 +1,4 @@
-/** 
+/**
  * @file gnome-cmd-string-dialog.cc
  * @copyright (C) 2001-2006 Marcus Bjurman\n
  * @copyright (C) 2007-2012 Piotr Eljasiak\n
@@ -205,15 +205,6 @@ void gnome_cmd_string_dialog_setup_with_cancel (GnomeCmdStringDialog *dialog, co
 }
 
 
-void gnome_cmd_string_dialog_set_hidden (GnomeCmdStringDialog *dialog, gint row, gboolean hidden)
-{
-    g_return_if_fail (GNOME_CMD_IS_STRING_DIALOG (dialog));
-    g_return_if_fail (row >= 0 && row < dialog->rows);
-
-    gtk_entry_set_visibility (GTK_ENTRY (dialog->entries[row]), !hidden);
-}
-
-
 void gnome_cmd_string_dialog_set_title (GnomeCmdStringDialog *dialog, const gchar *title)
 {
     g_return_if_fail (GNOME_CMD_IS_STRING_DIALOG (dialog));
diff --git a/libgcmd/gnome-cmd-string-dialog.h b/libgcmd/gnome-cmd-string-dialog.h
index e113b41a..a9949cbd 100644
--- a/libgcmd/gnome-cmd-string-dialog.h
+++ b/libgcmd/gnome-cmd-string-dialog.h
@@ -68,8 +68,6 @@ inline void gnome_cmd_string_dialog_setup (GnomeCmdStringDialog *dialog, const g
 
 GtkType gnome_cmd_string_dialog_get_type ();
 
-void gnome_cmd_string_dialog_set_hidden (GnomeCmdStringDialog *dialog, gint row, gboolean hidden);
-
 void gnome_cmd_string_dialog_set_title (GnomeCmdStringDialog *dialog, const gchar *title);
 
 void gnome_cmd_string_dialog_set_label (GnomeCmdStringDialog *dialog, gint row, const gchar *label);
diff --git a/src/gnome-cmd-cmdline.cc b/src/gnome-cmd-cmdline.cc
index 81b39174..ded8d701 100644
--- a/src/gnome-cmd-cmdline.cc
+++ b/src/gnome-cmd-cmdline.cc
@@ -416,14 +416,6 @@ void gnome_cmd_cmdline_set_history (GnomeCmdCmdline *cmdline, GList *history)
 }
 
 
-GtkWidget *gnome_cmd_cmdline_get_entry (GnomeCmdCmdline *cmdline)
-{
-    g_return_val_if_fail (GNOME_CMD_IS_CMDLINE (cmdline), nullptr);
-
-    return cmdline->priv->combo->entry;
-}
-
-
 gboolean gnome_cmd_cmdline_keypressed (GnomeCmdCmdline *cmdline, GdkEventKey *event)
 {
     g_return_val_if_fail (GNOME_CMD_IS_CMDLINE (cmdline), FALSE);
diff --git a/src/gnome-cmd-cmdline.h b/src/gnome-cmd-cmdline.h
index 05431e16..627f4f85 100644
--- a/src/gnome-cmd-cmdline.h
+++ b/src/gnome-cmd-cmdline.h
@@ -48,8 +48,6 @@ GtkWidget *gnome_cmd_cmdline_new ();
 
 GtkType gnome_cmd_cmdline_get_type ();
 
-GtkWidget *gnome_cmd_cmdline_get_entry (GnomeCmdCmdline *cmdline);
-
 void gnome_cmd_cmdline_set_dir (GnomeCmdCmdline *cmdline, const gchar *cwd);
 
 void gnome_cmd_cmdline_append_text (GnomeCmdCmdline *cmdline, const gchar *text);
diff --git a/src/gnome-cmd-con-list.cc b/src/gnome-cmd-con-list.cc
index 3783b7d4..de6f0dd3 100644
--- a/src/gnome-cmd-con-list.cc
+++ b/src/gnome-cmd-con-list.cc
@@ -280,30 +280,6 @@ void gnome_cmd_con_list_add_quick_ftp (GnomeCmdConList *con_list, GnomeCmdConRem
 }
 
 
-void gnome_cmd_con_list_remove_quick_ftp (GnomeCmdConList *con_list, GnomeCmdConRemote *remote_con)
-{
-    g_return_if_fail (GNOME_CMD_IS_CON_LIST (con_list));
-    g_return_if_fail (g_list_index (con_list->priv->all_cons, remote_con) != -1);
-    g_return_if_fail (g_list_index (con_list->priv->quick_ftp_cons, remote_con) != -1);
-
-    con_list->priv->all_cons = g_list_remove (con_list->priv->all_cons, remote_con);
-    con_list->priv->quick_ftp_cons = g_list_remove (con_list->priv->quick_ftp_cons, remote_con);
-
-    g_signal_handlers_disconnect_by_func (remote_con, (gpointer) on_con_updated, con_list);
-
-    if (con_list->priv->update_lock)
-    {
-        con_list->priv->changed = TRUE;
-        con_list->priv->quick_ftp_cons_changed = TRUE;
-    }
-    else
-    {
-        gtk_signal_emit (*con_list, signals[LIST_CHANGED]);
-        gtk_signal_emit (*con_list, signals[QUICK_FTP_LIST_CHANGED]);
-    }
-}
-
-
 void GnomeCmdConList::add(GnomeCmdConDevice *con)
 {
     g_return_if_fail (g_list_index (priv->all_cons, con) == -1);
diff --git a/src/gnome-cmd-con-list.h b/src/gnome-cmd-con-list.h
index fbcf5cbd..2bfbc977 100644
--- a/src/gnome-cmd-con-list.h
+++ b/src/gnome-cmd-con-list.h
@@ -91,7 +91,6 @@ inline GnomeCmdConList *gnome_cmd_con_list_get ()
 }
 
 void gnome_cmd_con_list_add_quick_ftp (GnomeCmdConList *list, GnomeCmdConRemote *ftp_con);
-void gnome_cmd_con_list_remove_quick_ftp (GnomeCmdConList *list, GnomeCmdConRemote *ftp_con);
 
 GList *gnome_cmd_con_list_get_all (GnomeCmdConList *list);
 GList *gnome_cmd_con_list_get_all_remote (GnomeCmdConList *list);
diff --git a/src/gnome-cmd-con.cc b/src/gnome-cmd-con.cc
index 845723a6..f48d376d 100644
--- a/src/gnome-cmd-con.cc
+++ b/src/gnome-cmd-con.cc
@@ -383,14 +383,6 @@ GnomeCmdBookmarkGroup *gnome_cmd_con_get_bookmarks (GnomeCmdCon *con)
 }
 
 
-void gnome_cmd_con_set_bookmarks (GnomeCmdCon *con, GnomeCmdBookmarkGroup *bookmarks)
-{
-    g_return_if_fail (GNOME_CMD_IS_CON (con));
-
-    con->priv->bookmarks = bookmarks;
-}
-
-
 void gnome_cmd_con_add_bookmark (GnomeCmdCon *con, gchar *name, gchar *path)
 {
     GnomeCmdBookmarkGroup *group = gnome_cmd_con_get_bookmarks (con);
diff --git a/src/gnome-cmd-con.h b/src/gnome-cmd-con.h
index e84a8fa9..b4d1a8b5 100644
--- a/src/gnome-cmd-con.h
+++ b/src/gnome-cmd-con.h
@@ -329,8 +329,6 @@ inline GnomeCmdPixmap *gnome_cmd_con_get_close_pixmap (GnomeCmdCon *con)
 
 GnomeCmdBookmarkGroup *gnome_cmd_con_get_bookmarks (GnomeCmdCon *con);
 
-void gnome_cmd_con_set_bookmarks (GnomeCmdCon *con, GnomeCmdBookmarkGroup *bookmarks);
-
 void gnome_cmd_con_add_bookmark (GnomeCmdCon *con, gchar *name, gchar *path);
 
 void gnome_cmd_con_erase_bookmark (GnomeCmdCon *con);
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index f531cfef..24ef0dba 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -56,8 +56,6 @@ struct GnomeCmdData::Private
 {
     GnomeCmdConList *con_list;
     GList           *auto_load_plugins;
-    gint             sort_column[2];
-    gboolean         sort_direction[2];
 
     gchar           *ftp_anonymous_password;
 };
@@ -3992,18 +3990,6 @@ void GnomeCmdData::save()
 }
 
 
-gint GnomeCmdData::gnome_cmd_data_get_int (const gchar *path, int def)
-{
-    gchar *s = g_build_path (G_DIR_SEPARATOR_S, PACKAGE, path, nullptr);
-
-    gint v = get_int (s, def);
-
-    g_free (s);
-
-    return v;
-}
-
-
 gchar* GnomeCmdData::gnome_cmd_data_get_string (const gchar *path, const gchar *def)
 {
     gchar *s = g_build_path (G_DIR_SEPARATOR_S, PACKAGE, path, nullptr);
@@ -4015,26 +4001,6 @@ gchar* GnomeCmdData::gnome_cmd_data_get_string (const gchar *path, const gchar *
     return v;
 }
 
-void GnomeCmdData::gnome_cmd_data_set_string (const gchar *path, const gchar *value)
-{
-    gchar *s = g_build_path (G_DIR_SEPARATOR_S, PACKAGE, path, nullptr);
-
-    set_string (s, value);
-
-    g_free (s);
-}
-
-gboolean GnomeCmdData::gnome_cmd_data_get_bool (const gchar *path, gboolean def)
-{
-    gchar *s = g_build_path (G_DIR_SEPARATOR_S, PACKAGE, path, nullptr);
-
-    gboolean v = get_bool (s, def);
-
-    g_free (s);
-
-    return v;
-}
-
 /**
  * This function tests if the given colorstring enholds a valid color-describing string.
  * See documentation of gdk_color_parse() for valid strings.
@@ -4227,18 +4193,6 @@ gboolean GnomeCmdData::set_gsettings_color_when_changed (GSettings *settings_giv
 }
 
 
-GnomeCmdFileList::ColumnID GnomeCmdData::get_sort_col(FileSelectorID id) const
-{
-    return (GnomeCmdFileList::ColumnID) priv->sort_column[id];
-}
-
-
-GtkSortType GnomeCmdData::get_sort_direction(FileSelectorID id) const
-{
-    return (GtkSortType) priv->sort_direction[id];
-}
-
-
 GnomeCmdData::SearchProfile::~SearchProfile(){};
 GnomeCmdData::AdvrenameConfig::Profile::~Profile(){};
 
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index 0de15a10..7bddc2c0 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -718,13 +718,10 @@ struct GnomeCmdData
     void save_bookmarks();
     void load_bookmarks();
     void save();
-    gint gnome_cmd_data_get_int (const gchar *path, int def);
     gchar* gnome_cmd_data_get_string (const gchar *path, const gchar *def);
-    void gnome_cmd_data_set_string (const gchar *path, const gchar *value);
     gboolean gnome_cmd_data_parse_color (const gchar *spec, GdkColor *color);
     gboolean set_color_if_valid_key_value(GdkColor *color, GSettings *settings, const char *key);
     void gnome_cmd_data_get_color_gnome_config (const gchar *path, GdkColor *color);
-    gboolean gnome_cmd_data_get_bool (const gchar *path, gboolean def);
     gboolean set_gsettings_when_changed (GSettings *settings, const char *key, gpointer value);
     gboolean set_gsettings_color_when_changed (GSettings *settings, const char *key, GdkColor *color);
     gboolean set_gsettings_enum_when_changed (GSettings *settings, const char *key, gint value);
@@ -732,9 +729,6 @@ struct GnomeCmdData
     gboolean set_valid_color_string(GSettings *settings, const char* key);
 
     GnomeCmdConRemote *get_quick_connect() const       {  return quick_connect;                     }
-
-    GnomeCmdFileList::ColumnID get_sort_col(FileSelectorID id) const;
-    GtkSortType get_sort_direction(FileSelectorID id) const;
 };
 
 gpointer gnome_cmd_data_get_con_list ();
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index 38e5ed8c..01d6f2ca 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -635,18 +635,6 @@ GnomeVFSURI *gnome_cmd_dir_get_child_uri (GnomeCmdDir *dir, const gchar *filenam
 }
 
 
-gchar *gnome_cmd_dir_get_child_uri_str (GnomeCmdDir *dir, const gchar *filename)
-{
-    g_return_val_if_fail (GNOME_CMD_IS_DIR (dir), nullptr);
-
-    GnomeVFSURI *uri = gnome_cmd_dir_get_child_uri (dir, filename);
-    gchar *uri_str = gnome_vfs_uri_to_string (uri, GNOME_VFS_URI_HIDE_PASSWORD);
-    gnome_vfs_uri_unref (uri);
-
-    return uri_str;
-}
-
-
 GnomeVFSURI *gnome_cmd_dir_get_absolute_path_uri (GnomeCmdDir *dir, string absolute_filename)
 {
     g_return_val_if_fail (GNOME_CMD_IS_DIR (dir), nullptr);
@@ -795,14 +783,6 @@ void gnome_cmd_dir_file_renamed (GnomeCmdDir *dir, GnomeCmdFile *f, const gchar
 }
 
 
-gboolean gnome_cmd_dir_uses_fam (GnomeCmdDir *dir)
-{
-    g_return_val_if_fail (GNOME_CMD_IS_DIR (dir), FALSE);
-
-    return FALSE;
-}
-
-
 void gnome_cmd_dir_start_monitoring (GnomeCmdDir *dir)
 {
     g_return_if_fail (GNOME_CMD_IS_DIR (dir));
diff --git a/src/gnome-cmd-dir.h b/src/gnome-cmd-dir.h
index ee63eea3..26fd7190 100644
--- a/src/gnome-cmd-dir.h
+++ b/src/gnome-cmd-dir.h
@@ -132,7 +132,6 @@ GnomeVFSURI *gnome_cmd_dir_get_uri (GnomeCmdDir *dir);
 gchar       *gnome_cmd_dir_get_uri_str (GnomeCmdDir *dir);
 
 GnomeVFSURI *gnome_cmd_dir_get_child_uri (GnomeCmdDir *dir, const gchar *filename);
-gchar       *gnome_cmd_dir_get_child_uri_str (GnomeCmdDir *dir, const gchar *filename);
 
 GnomeVFSURI *gnome_cmd_dir_get_absolute_path_uri (GnomeCmdDir *dir, std::string absolute_filename);
 
@@ -140,7 +139,6 @@ void gnome_cmd_dir_file_created (GnomeCmdDir *dir, const gchar *uri_str);
 void gnome_cmd_dir_file_deleted (GnomeCmdDir *dir, const gchar *uri_str);
 void gnome_cmd_dir_file_changed (GnomeCmdDir *dir, const gchar *uri_str);
 void gnome_cmd_dir_file_renamed (GnomeCmdDir *dir, GnomeCmdFile *f, const gchar *old_uri_str);
-gboolean gnome_cmd_dir_uses_fam (GnomeCmdDir *dir);
 
 void gnome_cmd_dir_start_monitoring (GnomeCmdDir *dir);
 void gnome_cmd_dir_cancel_monitoring (GnomeCmdDir *dir);
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index c396887f..21f7e9a2 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -509,14 +509,6 @@ const gchar *GnomeCmdFile::get_mdate(gboolean overide_disp_setting)
 }
 
 
-const gchar *GnomeCmdFile::get_cdate(gboolean overide_disp_setting)
-{
-    g_return_val_if_fail (info != nullptr, nullptr);
-
-    return date2string (info->ctime, overide_disp_setting);
-}
-
-
 const gchar *GnomeCmdFile::get_size()
 {
     static gchar dir_indicator[] = "<DIR> ";
@@ -585,28 +577,6 @@ const gchar *GnomeCmdFile::get_type_string()
 }
 
 
-const gchar *GnomeCmdFile::get_type_desc()
-{
-    static const gchar *type_strings[] = {
-        N_("Unknown file type"),
-        N_("Regular file"),
-        N_("Directory"),
-        N_("FIFO"),
-        N_("UNIX Socket"),
-        N_("Character device"),
-        N_("Block device"),
-        N_("Symbolic link")
-    };
-
-    g_return_val_if_fail (info != nullptr, nullptr);
-
-    if (!info->symlink_name)
-        return type_strings[info->type];
-
-    return type_strings[GNOME_VFS_FILE_TYPE_SYMBOLIC_LINK];
-}
-
-
 gboolean GnomeCmdFile::get_type_pixmap_and_mask(GdkPixmap **pixmap, GdkBitmap **mask)
 {
     g_return_val_if_fail (info != nullptr, FALSE);
@@ -751,21 +721,6 @@ void gnome_cmd_file_edit (GnomeCmdFile *f)
 }
 
 
-void gnome_cmd_file_show_cap_cut (GnomeCmdFile *f)
-{
-}
-
-
-void gnome_cmd_file_show_cap_copy (GnomeCmdFile *f)
-{
-}
-
-
-void gnome_cmd_file_show_cap_paste (GnomeCmdFile *f)
-{
-}
-
-
 void GnomeCmdFile::update_info(GnomeVFSFileInfo *file_info)
 {
     g_return_if_fail (file_info != nullptr);
diff --git a/src/gnome-cmd-file.h b/src/gnome-cmd-file.h
index da0ac65c..4342915b 100644
--- a/src/gnome-cmd-file.h
+++ b/src/gnome-cmd-file.h
@@ -1,4 +1,4 @@
-/** 
+/**
  * @file gnome-cmd-file.h
  * @copyright (C) 2001-2006 Marcus Bjurman\n
  * @copyright (C) 2007-2012 Piotr Eljasiak\n
@@ -72,7 +72,6 @@ struct GnomeCmdFile
     const gchar *get_group();
     const gchar *get_adate(gboolean overide_disp_setting);
     const gchar *get_mdate(gboolean overide_disp_setting);
-    const gchar *get_cdate(gboolean overide_disp_setting);
     const gchar *get_size();
     GnomeVFSFileSize get_tree_size();
     const gchar *get_tree_size_as_str();
@@ -85,7 +84,6 @@ struct GnomeCmdFile
     GnomeCmdDir *get_parent_dir();
 
     const gchar *get_type_string();
-    const gchar *get_type_desc();
     gboolean get_type_pixmap_and_mask(GdkPixmap **pixmap, GdkBitmap **mask);
 
     GnomeVFSResult chmod(GnomeVFSFilePermissions perm);
@@ -170,9 +168,6 @@ void gnome_cmd_file_show_chown_dialog (GList *files);
 void gnome_cmd_file_show_chmod_dialog (GList *files);
 void gnome_cmd_file_view (GnomeCmdFile *f, gint internal_viewer);
 void gnome_cmd_file_edit (GnomeCmdFile *f);
-void gnome_cmd_file_show_cap_cut (GnomeCmdFile *f);
-void gnome_cmd_file_show_cap_copy (GnomeCmdFile *f);
-void gnome_cmd_file_show_cap_paste (GnomeCmdFile *f);
 
 GList *gnome_cmd_file_list_copy (GList *files);
 void gnome_cmd_file_list_free (GList *files);
diff --git a/src/gnome-cmd-menu-button.cc b/src/gnome-cmd-menu-button.cc
index f1c41f68..847af2cd 100644
--- a/src/gnome-cmd-menu-button.cc
+++ b/src/gnome-cmd-menu-button.cc
@@ -66,12 +66,6 @@ GtkWidget *gnome_cmd_button_menu_new (const gchar *label, GtkWidget *menu)
 }
 
 
-GtkWidget *gnome_cmd_button_menu_new_from_stock (const gchar *stock_id, GtkWidget *menu)
-{
-    return create_menu_button (stock_id, NULL, menu);
-}
-
-
 GtkWidget *gnome_cmd_button_menu_new_from_stock (const gchar *stock_id, const gchar *label, GtkWidget *menu)
 {
     return create_menu_button (stock_id, label, menu);
diff --git a/src/gnome-cmd-menu-button.h b/src/gnome-cmd-menu-button.h
index eb6413c6..762143ae 100644
--- a/src/gnome-cmd-menu-button.h
+++ b/src/gnome-cmd-menu-button.h
@@ -22,7 +22,6 @@
 #pragma once
 
 GtkWidget *gnome_cmd_button_menu_new (const gchar *label, GtkWidget *menu);
-GtkWidget *gnome_cmd_button_menu_new_from_stock (const gchar *stock_id, GtkWidget *menu);
 GtkWidget *gnome_cmd_button_menu_new_from_stock (const gchar *stock_id, const gchar *label, GtkWidget *menu);
 gulong gnome_cmd_button_menu_connect_handler (GtkWidget *button, GtkWidget *menu);
 void gnome_cmd_button_menu_disconnect_handler (GtkWidget *button, GtkWidget *menu);
diff --git a/src/intviewer/search-dlg.cc b/src/intviewer/search-dlg.cc
index 0b9703f5..e478bbc1 100644
--- a/src/intviewer/search-dlg.cc
+++ b/src/intviewer/search-dlg.cc
@@ -359,21 +359,4 @@ GtkWidget* gviewer_search_dlg_new (GtkWindow *parent)
     GViewerSearchDlg *dlg = (GViewerSearchDlg *) g_object_new (gviewer_search_dlg_get_type(), NULL);
 
     return GTK_WIDGET (dlg);
-}
-
-
-void gviewer_show_search_dlg (GtkWindow *parent)
-{
-    GtkWidget *w = gviewer_search_dlg_new (parent);
-    GViewerSearchDlg *dlg = GVIEWER_SEARCH_DLG (w);
-
-    gtk_dialog_run (GTK_DIALOG (dlg));
-
-    g_warning ("Search mode = %d", (int) gviewer_search_dlg_get_search_mode (dlg));
-
-    gchar *text = gviewer_search_dlg_get_search_text_string (dlg);
-    g_warning ("Search text string = \"%s\"", text);
-    g_free (text);
-
-    gtk_widget_destroy (GTK_WIDGET (dlg));
-}
+}
\ No newline at end of file
diff --git a/src/intviewer/search-dlg.h b/src/intviewer/search-dlg.h
index 46c4f011..4d8249ea 100644
--- a/src/intviewer/search-dlg.h
+++ b/src/intviewer/search-dlg.h
@@ -60,5 +60,3 @@ gchar *gviewer_search_dlg_get_search_text_string (GViewerSearchDlg *sdlg);
 guint8 *gviewer_search_dlg_get_search_hex_buffer (GViewerSearchDlg *sdlg, /*out*/ guint &buflen);
 
 gboolean gviewer_search_dlg_get_case_sensitive (GViewerSearchDlg *sdlg);
-
-void gviewer_show_search_dlg (GtkWindow *parent);
diff --git a/src/intviewer/viewer-widget.cc b/src/intviewer/viewer-widget.cc
index 04346835..f6cbb365 100644
--- a/src/intviewer/viewer-widget.cc
+++ b/src/intviewer/viewer-widget.cc
@@ -426,22 +426,6 @@ VIEWERDISPLAYMODE gviewer_get_display_mode(GViewer *obj)
 }
 
 
-void gviewer_load_filedesc(GViewer *obj, int fd)
-{
-    g_return_if_fail (IS_GVIEWER (obj));
-    g_return_if_fail (fd>2);
-
-    g_free (obj->priv->filename);
-    obj->priv->filename = NULL;
-
-    text_render_load_filedesc(obj->priv->textr, fd);
-
-    gviewer_auto_detect_display_mode(obj);
-
-    gviewer_set_display_mode(obj, obj->priv->dispmode);
-}
-
-
 void gviewer_load_file(GViewer *obj, const gchar*filename)
 {
     g_return_if_fail (IS_GVIEWER (obj));
@@ -459,15 +443,6 @@ void gviewer_load_file(GViewer *obj, const gchar*filename)
 }
 
 
-const gchar *gviewer_get_filename(GViewer *obj)
-{
-    g_return_val_if_fail (IS_GVIEWER (obj), NULL);
-    g_return_val_if_fail (obj->priv->filename, NULL);
-
-    return obj->priv->filename;
-}
-
-
 void gviewer_set_tab_size(GViewer *obj, int tab_size)
 {
     g_return_if_fail (IS_GVIEWER (obj));
diff --git a/src/intviewer/viewer-widget.h b/src/intviewer/viewer-widget.h
index cfc89f9b..ef4c7226 100644
--- a/src/intviewer/viewer-widget.h
+++ b/src/intviewer/viewer-widget.h
@@ -64,8 +64,6 @@ void           gviewer_set_display_mode(GViewer *obj, VIEWERDISPLAYMODE mode);
 VIEWERDISPLAYMODE gviewer_get_display_mode(GViewer *obj);
 
 void           gviewer_load_file(GViewer *obj, const gchar *filename);
-void           gviewer_load_filedesc(GViewer *obj, int fd);
-const gchar   *gviewer_get_filename(GViewer *obj);
 
 /* Text Render related settings */
 void        gviewer_set_tab_size(GViewer *obj, int tab_size);
diff --git a/src/utils.cc b/src/utils.cc
index 94f1ad86..13af9164 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -1,4 +1,4 @@
-/** 
+/**
  * @file utils.cc
  * @copyright (C) 2001-2006 Marcus Bjurman\n
  * @copyright (C) 2007-2012 Piotr Eljasiak\n
@@ -498,7 +498,7 @@ GnomeVFSFileSize calc_tree_size (const GnomeVFSURI *dir_uri, gulong *count)
 
         g_list_free (list);
 
-    } else if (result==GNOME_VFS_ERROR_NOT_A_DIRECTORY) 
+    } else if (result==GNOME_VFS_ERROR_NOT_A_DIRECTORY)
     {
         // A file
         GnomeVFSFileInfo *info = gnome_vfs_file_info_new ();
@@ -905,19 +905,6 @@ GList *file_list_to_uri_list (GList *files)
 }
 
 
-GList *file_list_to_info_list (GList *files)
-{
-    GList *infos = NULL;
-
-    for (; files; files = files->next)
-    {
-        GnomeCmdFile *f = GNOME_CMD_FILE (files->data);
-        infos = g_list_append (infos, f->info);
-    }
-
-    return infos;
-}
-
 /**
  * returns  1 if dir is existing,
  * returns  0 if dir is not existing,
diff --git a/src/utils.h b/src/utils.h
index 1c42ddb0..ce9297fd 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -215,7 +215,6 @@ GtkWidget *create_ui_pixmap (GtkWidget *window,
 gchar *unix_to_unc (const gchar *path);
 GdkColor *gdk_color_new (gushort r, gushort g, gushort b);
 GList *file_list_to_uri_list (GList *files);
-GList *file_list_to_info_list (GList *files);
 
 int is_dir_existing(const gchar *dpath);
 gboolean create_dir_if_needed (const gchar *dpath);


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