Skip to content

Commit

Permalink
lapiz-encodings-dialog: improve parameters:
Browse files Browse the repository at this point in the history
add G_GNUC_UNUSED in required unused parameters and
remove useless unused parameters
  • Loading branch information
sc0w committed May 16, 2024
1 parent acdee3b commit 160eb6e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lapiz/dialogs/lapiz-encodings-dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ enum {
};

static void
count_selected_items_func (CtkTreeModel *model,
CtkTreePath *path,
CtkTreeIter *iter,
count_selected_items_func (CtkTreeModel *model G_GNUC_UNUSED,
CtkTreePath *path G_GNUC_UNUSED,
CtkTreeIter *iter G_GNUC_UNUSED,
gpointer data)
{
int *count = data;
Expand Down Expand Up @@ -125,7 +125,7 @@ displayed_selection_changed_callback (CtkTreeSelection *selection,

static void
get_selected_encodings_func (CtkTreeModel *model,
CtkTreePath *path,
CtkTreePath *path G_GNUC_UNUSED,
CtkTreeIter *iter,
gpointer data)
{
Expand Down Expand Up @@ -168,8 +168,7 @@ update_shown_in_menu_tree_model (CtkListStore *store,
}

static void
add_button_clicked_callback (CtkWidget *button,
LapizEncodingsDialog *dialog)
add_button_clicked_callback (LapizEncodingsDialog *dialog)
{
CtkTreeSelection *selection;
GSList *encodings;
Expand Down Expand Up @@ -199,8 +198,7 @@ add_button_clicked_callback (CtkWidget *button,
}

static void
remove_button_clicked_callback (CtkWidget *button,
LapizEncodingsDialog *dialog)
remove_button_clicked_callback (LapizEncodingsDialog *dialog)
{
CtkTreeSelection *selection;
GSList *encodings;
Expand Down

0 comments on commit 160eb6e

Please sign in to comment.