Remove unused declarations
authorColin Clark <colin.clark@cclark.uk>
Fri, 16 Jun 2023 11:21:04 +0000 (12:21 +0100)
committerColin Clark <colin.clark@cclark.uk>
Fri, 16 Jun 2023 11:21:04 +0000 (12:21 +0100)
29 files changed:
src/bar.h
src/cache.h
src/collect.h
src/color-man.cc
src/color-man.h
src/editors.h
src/filecache.h
src/filedata.h
src/fullscreen.h
src/image.cc
src/image.h
src/layout-image.h
src/layout.h
src/metadata.h
src/pan-view/pan-view-filter.h
src/pixbuf-renderer.h
src/pixbuf-util.h
src/rcfile.h
src/similar.h
src/ui-fileops.h
src/ui-help.h
src/ui-pathsel.h
src/ui-spinner.h
src/ui-tree-edit.h
src/ui-utildlg.h
src/utilops.h
src/view-dir.h
src/view-file/view-file-icon.h
src/view-file/view-file-list.h

index 8e612d0..9dab72f 100644 (file)
--- a/src/bar.h
+++ b/src/bar.h
@@ -68,8 +68,6 @@ void bar_set_fd(GtkWidget *bar, FileData *fd);
 void bar_notify_selection(GtkWidget *bar, gint count);
 gboolean bar_event(GtkWidget *bar, GdkEvent *event);
 
-gint bar_get_width(GtkWidget *bar);
-
 GtkWidget *bar_pane_expander_title(const gchar *title);
 void bar_update_expander(GtkWidget *pane);
 gboolean bar_pane_translate_title(PaneType type, const gchar *id, gchar **title);
index 896c73a..3771fe6 100644 (file)
@@ -70,7 +70,6 @@ gboolean cache_sim_data_save(CacheData *cd);
 CacheData *cache_sim_data_load(const gchar *path);
 
 void cache_sim_data_set_dimensions(CacheData *cd, gint w, gint h);
-void cache_sim_data_set_date(CacheData *cd, time_t date);
 void cache_sim_data_set_md5sum(CacheData *cd, guchar digest[16]);
 void cache_sim_data_set_similarity(CacheData *cd, ImageSimilarityData *sd);
 gint cache_sim_data_filled(ImageSimilarityData *sd);
index 97cd645..35d38a1 100644 (file)
@@ -29,7 +29,6 @@ void collection_info_free_thumb(CollectInfo *ci);
 void collection_info_free(CollectInfo *ci);
 
 void collection_info_set_thumb(CollectInfo *ci, GdkPixbuf *pixbuf);
-gboolean collection_info_load_thumb(CollectInfo *ci);
 
 void collection_list_free(GList *list);
 
index cab0d4b..01e822f 100644 (file)
@@ -842,11 +842,6 @@ void color_man_correct_region(ColorMan *UNUSED(cm), GdkPixbuf *UNUSED(pixbuf), g
        /* no op */
 }
 
-void color_man_start_bg(ColorMan *UNUSED(cm), ColorManDoneFunc UNUSED(done_func), gpointer UNUSED(done_data))
-{
-       /* no op */
-}
-
 gboolean color_man_get_status(ColorMan *UNUSED(cm), gchar **UNUSED(image_profile), gchar **UNUSED(screen_profile))
 {
        return FALSE;
index ed8beeb..1c2dad7 100644 (file)
@@ -69,8 +69,6 @@ void color_man_update();
 
 void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h);
 
-void color_man_start_bg(ColorMan *cm, ColorManDoneFunc don_func, gpointer done_data);
-
 gboolean color_man_get_status(ColorMan *cm, gchar **image_profile, gchar **screen_profile);
 
 guchar *heif_color_profile(FileData *fd, guint *profile_len);
index 9f6832f..5ee0d4b 100644 (file)
@@ -128,8 +128,6 @@ gboolean editor_is_filter(const gchar *key);
 gboolean editor_no_param(const gchar *key);
 const gchar *editor_get_error_str(EditorFlags flags);
 
-const gchar *editor_get_name(const gchar *key);
-
 gboolean is_valid_editor_command(const gchar *key);
 gboolean editor_blocks_file(const gchar *key);
 
index 4945231..2278f76 100644 (file)
@@ -33,7 +33,6 @@ gboolean file_cache_get(FileCacheData *fc, FileData *fd);
 void file_cache_put(FileCacheData *fc, FileData *fd, gulong size);
 void file_cache_dump(FileCacheData *fc);
 void file_cache_set_size(FileCacheData *fc, gulong size);
-gulong file_cache_get_max_size(FileCacheData *fc);
 gulong file_cache_get_size(FileCacheData *fc);
 void file_cache_set_max_size(FileCacheData *fc, gulong size);
 
index 11c665f..4c12dae 100644 (file)
@@ -80,7 +80,6 @@ void file_data_disable_grouping_list(GList *fd_list, gboolean disable);
 gint filelist_sort_compare_filedata(FileData *fa, FileData *fb);
 gint filelist_sort_compare_filedata_full(FileData *fa, FileData *fb, SortType method, gboolean ascend);
 GList *filelist_sort(GList *list, SortType method, gboolean ascend);
-GList *filelist_insert_sort(GList *list, FileData *fd, SortType method, gboolean ascend);
 GList *filelist_sort_full(GList *list, SortType method, gboolean ascend, GCompareFunc cb);
 GList *filelist_insert_sort_full(GList *list, gpointer data, SortType method, gboolean ascend, GCompareFunc cb);
 
@@ -114,9 +113,6 @@ GList *file_data_filter_file_filter_list(GList *list, GRegex *filter);
 
 GList *file_data_filter_class_list(GList *list, guint filter);
 
-gint file_data_get_user_orientation(FileData *fd);
-void file_data_set_user_orientation(FileData *fd, gint value);
-
 gchar *file_data_sc_list_to_string(FileData *fd);
 
 gchar *file_data_get_sidecar_path(FileData *fd, gboolean existing_only);
index 57e0599..8f0ca00 100644 (file)
@@ -56,8 +56,6 @@ ScreenData *fullscreen_prefs_list_find(GList *list, gint screen);
 void fullscreen_prefs_get_geometry(gint screen, GtkWidget *widget, gint *x, gint *y, gint *width, gint *height,
                                   GdkScreen **dest_screen, gboolean *same_region);
 
-gint fullscreen_prefs_find_screen_for_widget(GtkWidget *widget);
-
 GtkWidget *fullscreen_prefs_selection_new(const gchar *text, gint *screen_value, gboolean *above_value);
 
 
index bd4c607..2729be2 100644 (file)
@@ -706,11 +706,6 @@ void image_set_overunderexposed(ImageWindow *imd, gboolean overunderexposed)
        pixbuf_renderer_set_orientation(reinterpret_cast<PixbufRenderer *>(imd->pr), imd->orientation);
 }
 
-gboolean image_get_overunderexposed(ImageWindow *imd)
-{
-       return imd->overunderexposed;
-}
-
 void image_set_ignore_alpha(ImageWindow *imd, gboolean ignore_alpha)
 {
    pixbuf_renderer_set_ignore_alpha(reinterpret_cast<PixbufRenderer *>(imd->pr), ignore_alpha);
index 12e0a23..d02ceda 100644 (file)
@@ -44,9 +44,6 @@ void image_set_scroll_func(ImageWindow *imd,
 void image_set_focus_in_func(ImageWindow *imd,
        void (*func)(ImageWindow *, gpointer),
        gpointer data);
-void image_set_scroll_notify_func(ImageWindow *imd,
-                                 void (*func)(ImageWindow *imd, gint x, gint y, gint width, gint height, gpointer data),
-                                 gpointer data);
 void image_set_complete_func(ImageWindow *imd,
                             void (*func)(ImageWindow *imd, gint preload, gpointer data),
                             gpointer data);
@@ -92,7 +89,6 @@ void image_alter_orientation(ImageWindow *imd, FileData *fd, AlterType type);
 void image_set_desaturate(ImageWindow *imd, gboolean desaturate);
 gboolean image_get_desaturate(ImageWindow *imd);
 void image_set_overunderexposed(ImageWindow *imd, gboolean overunderexposed);
-gboolean image_get_overunderexposed(ImageWindow *imd);
 void image_set_ignore_alpha(ImageWindow *imd, gboolean ignore_alpha);
 
 /* zoom */
@@ -107,9 +103,7 @@ gchar *image_zoom_get_as_text(ImageWindow *imd);
 gdouble image_zoom_get_default(ImageWindow *imd);
 
 /* stereo */
-gint image_stereo_get(ImageWindow *imd);
 void image_stereo_set(ImageWindow *imd, gint stereo_mode);
-void image_stereo_swap(ImageWindow *imd);
 
 StereoPixbufData image_stereo_pixbuf_get(ImageWindow *imd);
 void image_stereo_pixbuf_set(ImageWindow *imd, StereoPixbufData stereo_mode);
index 9d4b123..820857f 100644 (file)
@@ -49,7 +49,6 @@ gboolean layout_image_color_profile_get_status(LayoutWindow *lw, gchar **image_p
 
 
 const gchar *layout_image_get_path(LayoutWindow *lw);
-const gchar *layout_image_get_name(LayoutWindow *lw);
 FileData *layout_image_get_fd(LayoutWindow *lw);
 CollectionData *layout_image_get_collection(LayoutWindow *lw, CollectInfo **info);
 gint layout_image_get_index(LayoutWindow *lw);
@@ -64,7 +63,6 @@ void layout_image_alter_orientation(LayoutWindow *lw, AlterType type);
 void layout_image_set_desaturate(LayoutWindow *lw, gboolean desaturate);
 gboolean layout_image_get_desaturate(LayoutWindow *lw);
 void layout_image_set_overunderexposed(LayoutWindow *lw, gboolean overunderexposed);
-gboolean layout_image_get_overunderexposed(LayoutWindow *lw);
 void layout_image_set_ignore_alpha(LayoutWindow *lw, gboolean ignore_alpha);
 
 void layout_image_rating(LayoutWindow *lw, const gchar *rating);
@@ -102,8 +100,6 @@ gboolean layout_image_slideshow_paused(LayoutWindow *lw);
 
 void layout_image_animate_toggle(LayoutWindow *lw);
 
-void layout_image_overlay_toggle(LayoutWindow *lw);
-
 void layout_image_notify_cb(FileData *fd, NotifyType type, gpointer data);
 void layout_image_reset_orientation(LayoutWindow *lw);
 #endif
index 1fcaabe..16840f3 100644 (file)
@@ -86,10 +86,8 @@ void layout_mark_filter_toggle(LayoutWindow *lw, gint mark);
 void layout_refresh(LayoutWindow *lw);
 
 void layout_thumb_set(LayoutWindow *lw, gboolean enable);
-gboolean layout_thumb_get(LayoutWindow *lw);
 
 void layout_marks_set(LayoutWindow *lw, gboolean enable);
-gboolean layout_marks_get(LayoutWindow *lw);
 
 void layout_file_filter_set(LayoutWindow *lw, gboolean enable);
 
@@ -100,7 +98,6 @@ gboolean layout_geometry_get(LayoutWindow *lw, gint *x, gint *y, gint *w, gint *
 gboolean layout_geometry_get_dividers(LayoutWindow *lw, gint *h, gint *v);
 
 void layout_views_set(LayoutWindow *lw, DirViewType dir_view_type, FileViewType file_view_type);
-gboolean layout_views_get(LayoutWindow *lw, DirViewType *dir_view_type, FileViewType *file_view_type);
 
 void layout_views_set_sort(LayoutWindow *lw, SortType method, gboolean ascend);
 
index 18d9b96..f51b65c 100644 (file)
@@ -30,7 +30,6 @@
 void metadata_cache_free(FileData *fd);
 
 gboolean metadata_write_queue_remove(FileData *fd);
-gboolean metadata_write_queue_remove_list(GList *list);
 gboolean metadata_write_perform(FileData *fd);
 gboolean metadata_write_queue_confirm(gboolean force_dialog, FileUtilDoneFunc done_func, gpointer done_data);
 void metadata_notify_cb(FileData *fd, NotifyType type, gpointer data);
index d430bb2..ca12f2d 100644 (file)
@@ -60,8 +60,6 @@ struct PanViewFilterUi
        gint filter_classes;
 };
 
-void pan_filter_toggle_visible(PanWindow *pw, gboolean enable);
-void pan_filter_activate(PanWindow *pw);
 void pan_filter_activate_cb(const gchar *text, gpointer data);
 void pan_filter_toggle_cb(GtkWidget *button, gpointer data);
 void pan_filter_toggle_button_cb(GtkWidget *button, gpointer data);
index f1f2df9..b7d2aa4 100644 (file)
@@ -252,7 +252,6 @@ GType pixbuf_renderer_get_type();
 PixbufRenderer *pixbuf_renderer_new();
 
 void pixbuf_renderer_set_parent(PixbufRenderer *pr, GtkWindow *window);
-GtkWindow *pixbuf_renderer_get_parent(PixbufRenderer *pr);
 
 /**
  * @headerfile pixbuf_renderer_set_pixbuf
@@ -269,7 +268,6 @@ void pixbuf_renderer_set_pixbuf_lazy(PixbufRenderer *pr, GdkPixbuf *pixbuf, gdou
 GdkPixbuf *pixbuf_renderer_get_pixbuf(PixbufRenderer *pr);
 
 void pixbuf_renderer_set_orientation(PixbufRenderer *pr, gint orientation);
-gint pixbuf_renderer_get_orientation(PixbufRenderer *pr);
 
 /**
  * @headerfile pixbuf_renderer_set_stereo_data
@@ -340,7 +338,7 @@ gboolean pixbuf_renderer_get_visible_rect(PixbufRenderer *pr, GdkRectangle *rect
  * actual size of the PixbufRenderer window minus borders,
  * x and y are the scroll offset and include zoom factor.
  */
-gboolean pixbuf_renderer_get_virtual_rect(PixbufRenderer *pr, GdkRectangle *rect);
+//gboolean pixbuf_renderer_get_virtual_rect(PixbufRenderer *pr, GdkRectangle *rect);
 
 /**
  * @headerfile pixbuf_renderer_set_color
index 864271d..62438ce 100644 (file)
@@ -24,7 +24,6 @@
 
 
 gboolean pixbuf_to_file_as_png (GdkPixbuf *pixbuf, const gchar *filename);
-gboolean pixbuf_to_file_as_jpg(GdkPixbuf *pixbuf, const gchar *filename, gint quality);
 
 void pixbuf_inline_register_stock_icons();
 gboolean register_theme_icon_as_stock(const gchar *key, const gchar *icon);
@@ -87,11 +86,6 @@ void pixbuf_draw_rect_fill(GdkPixbuf *pb,
                           gint x, gint y, gint w, gint h,
                           gint r, gint g, gint b, gint a);
 
-void pixbuf_draw_rect(GdkPixbuf *pb,
-                     gint x, gint y, gint w, gint h,
-                     gint r, gint g, gint b, gint a,
-                     gint left, gint right, gint top, gint bottom);
-
 void pixbuf_set_rect_fill(GdkPixbuf *pb,
                          gint x, gint y, gint w, gint h,
                          gint r, gint g, gint b, gint a);
index 848d639..66cc69a 100644 (file)
@@ -31,7 +31,6 @@ void write_color_option(GString *str, gint indent, const gchar *label, GdkColor
 gboolean read_color_option(const gchar *option, const gchar *label, const gchar *value, GdkColor *color);
 void write_int_option(GString *str, gint indent, const gchar *label, gint n);
 gboolean read_int_option(const gchar *option, const gchar *label, const gchar *value, gint *n);
-void write_ushort_option(GString *str, gint indent, const gchar *label, guint16 n);
 gboolean read_ushort_option(const gchar *option, const gchar *label, const gchar *value, guint16 *n);
 void write_uint_option(GString *str, gint indent, const gchar *label, guint n);
 gboolean read_uint_option(const gchar *option, const gchar *label, const gchar *value, guint *n);
index 6e8ad6c..b29b79d 100644 (file)
@@ -44,7 +44,6 @@ gdouble image_sim_compare_fast(ImageSimilarityData *a, ImageSimilarityData *b, g
 
 
 void image_sim_alternate_set(gboolean enable);
-gboolean image_sim_alternate_enabled();
 void image_sim_alternate_processing(ImageSimilarityData *sd);
 
 
index 0cdaed2..f0987ad 100644 (file)
@@ -70,7 +70,6 @@ gboolean filetime_set(const gchar *s, time_t tval);
 gboolean is_readable_file(const gchar *s);
 gboolean access_file(const gchar *s, gint mode);
 gboolean unlink_file(const gchar *s);
-gboolean symlink_utf8(const gchar *source, const gchar *target);
 gboolean mkdir_utf8(const gchar *s, gint mode);
 gboolean rmdir_utf8(const gchar *s);
 gboolean copy_file_attributes(const gchar *s, const gchar *t, gint perms, gint mtime);
@@ -88,7 +87,6 @@ void string_list_free(GList *list);
 GList *string_list_copy(const GList *list);
 
 gchar *unique_filename(const gchar *path, const gchar *ext, const gchar *divider, gboolean pad);
-gchar *unique_filename_simple(const gchar *path);
 
 const gchar *filename_from_path(const gchar *path);
 gchar *remove_level_from_path(const gchar *path);
index cb54604..7685b99 100644 (file)
 GtkWidget *help_window_new(const gchar *title,
                           const gchar *subclass,
                           const gchar *path, const gchar *key);
-void help_window_set_file(GtkWidget *window, const gchar *path, const gchar *key);
 void help_window_set_key(GtkWidget *window, const gchar *key);
 
-GtkWidget *help_window_get_box(GtkWidget *window);
-
-
 #endif
 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
index 3d7d682..767ac5b 100644 (file)
@@ -25,7 +25,6 @@
 
 GtkWidget *path_selection_new_with_files(GtkWidget *entry, const gchar *path,
                                         const gchar *filter, const gchar *filter_desc);
-GtkWidget *path_selection_new(const gchar *path, GtkWidget *entry);
 
 void path_selection_sync_to_entry(GtkWidget *entry);
 
index 819858d..66d7e89 100644 (file)
@@ -47,8 +47,6 @@ extern const guint8 icon_tabcomp[];
 GtkWidget *spinner_new(const gchar *path, gint interval);
 
 void spinner_set_interval(GtkWidget *spinner, gint interval);
-void spinner_step(GtkWidget *spinner, gboolean reset);
-
 
 #endif
 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
index 89f2d14..f9fb4b3 100644 (file)
@@ -87,7 +87,7 @@ gboolean tree_view_move_cursor_away(GtkTreeView *widget, GtkTreeIter *iter, gboo
  * @headerfile tree_path_to_row
  * utility to return row position of given GtkTreePath
  */
-gint tree_path_to_row(GtkTreePath *tpath);
+//gint tree_path_to_row(GtkTreePath *tpath);
 
 
 /**
@@ -105,7 +105,7 @@ void shift_color(GdkColor *src, gshort val, gint direction);
  *
  * shift_value is 1 to 100, representing the percent of the shift.
  */
-void style_shift_color(GtkStyle *style, GtkStateType type, gshort shift_value, gint direction);
+//void style_shift_color(GtkStyle *style, GtkStateType type, gshort shift_value, gint direction);
 
 /**
  * @def STYLE_SHIFT_STANDARD
index 01f154a..b9cf811 100644 (file)
@@ -98,7 +98,6 @@ GtkWidget *file_dialog_add_button(FileDialog *fd, const gchar *stock_id, const g
 void file_dialog_add_path_widgets(FileDialog *fd, const gchar *default_path, const gchar *path,
                                  const gchar *history_key, const gchar *filter, const gchar *filter_desc);
 
-void file_dialog_add_filter(FileDialog *fd, const gchar *filter, const gchar *filter_desc, gboolean set);
 void file_dialog_clear_filter(FileDialog *fd);
 void file_dialog_sync_history(FileDialog *fd, gboolean dir_only);
 
index 92d2454..f082f42 100644 (file)
@@ -64,7 +64,6 @@ void file_util_start_editor_from_file(const gchar *key, FileData *fd, GtkWidget
 
 /* working directory is used only as a fallback when the filelist is empty */
 void file_util_start_editor_from_filelist(const gchar *key, GList *list, const gchar *working_directory, GtkWidget *parent);
-void file_util_start_filter_from_file(const gchar *key, FileData *fd, const gchar *dest_path, GtkWidget *parent);
 void file_util_start_filter_from_filelist(const gchar *key, GList *list, const gchar *dest_path, GtkWidget *parent);
 
 void file_util_delete_dir(FileData *source_fd, GtkWidget *parent);
index d14ed3d..f099872 100644 (file)
@@ -35,14 +35,10 @@ ViewDir *vd_new(LayoutWindow *lw);
 
 void vd_set_select_func(ViewDir *vdl, void (*func)(ViewDir *vdl, FileData *fd, gpointer data), gpointer data);
 
-void vd_set_layout(ViewDir *vdl, LayoutWindow *layout);
-
 gboolean vd_set_fd(ViewDir *vdl, FileData *dir_fd);
 void vd_refresh(ViewDir *vdl);
 gboolean vd_find_row(ViewDir *vd, FileData *fd, GtkTreeIter *iter);
 
-const gchar *vd_row_get_path(ViewDir *vdl, gint row);
-
 void vd_color_set(ViewDir *vd, FileData *fd, gint color_set);
 void vd_popup_destroy_cb(GtkWidget *widget, gpointer data);
 
@@ -54,8 +50,6 @@ void vd_new_folder(ViewDir *vd, FileData *dir_fd);
 void vd_dnd_drop_scroll_cancel(ViewDir *vd);
 void vd_dnd_init(ViewDir *vd);
 
-void vd_menu_position_cb(GtkMenu *menu, gint *x, gint *y, gboolean *push_in, gpointer data);
-
 void vd_activate_cb(GtkTreeView *tview, GtkTreePath *tpath, GtkTreeViewColumn *column, gpointer data);
 void vd_color_cb(GtkTreeViewColumn *tree_column, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data);
 
index 35e5855..a8d2c71 100644 (file)
@@ -55,7 +55,6 @@ gint vficon_index_by_fd(ViewFile *vf, FileData *in_fd);
 guint vficon_count(ViewFile *vf, gint64 *bytes);
 GList *vficon_get_list(ViewFile *vf);
 
-gboolean vficon_index_is_selected(ViewFile *vf, gint row);
 guint vficon_selection_count(ViewFile *vf, gint64 *bytes);
 GList *vficon_selection_get_list(ViewFile *vf);
 GList *vficon_selection_get_list_by_index(ViewFile *vf);
index 3bbf480..f8139f1 100644 (file)
@@ -54,7 +54,6 @@ gint vflist_index_by_fd(ViewFile *vf, FileData *fd);
 guint vflist_count(ViewFile *vf, gint64 *bytes);
 GList *vflist_get_list(ViewFile *vf);
 
-gboolean vflist_index_is_selected(ViewFile *vf, gint row);
 guint vflist_selection_count(ViewFile *vf, gint64 *bytes);
 GList *vflist_selection_get_list(ViewFile *vf);
 GList *vflist_selection_get_list_by_index(ViewFile *vf);