diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-01-05 08:12:57 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-01-05 08:16:50 -0800 |
commit | 3d75c73f3677d98682b31766334ab02f124c76b9 (patch) | |
tree | d35100ab2ec9cd6b29d67c4280a8aa5671225bd6 /equipment.c | |
parent | 1d6903c65a4980ac51a3508db6a388ab07111341 (diff) | |
download | subsurface-3d75c73f3677d98682b31766334ab02f124c76b9.tar.gz |
More removal of unused arguments
Just trying to clean up the code a bit.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/equipment.c b/equipment.c index d2c7891ae..e4f880f64 100644 --- a/equipment.c +++ b/equipment.c @@ -303,7 +303,7 @@ int cylinder_none(cylinder_t *cyl) !cyl->end.mbar; } -static void set_one_cylinder(int index, cylinder_t *cyl, GtkListStore *model, GtkTreeIter *iter) +static void set_one_cylinder(cylinder_t *cyl, GtkListStore *model, GtkTreeIter *iter) { unsigned int start, end; @@ -346,7 +346,7 @@ void show_dive_equipment(struct dive *dive) cylinder_t *cyl = dive->cylinder+i; gtk_list_store_append(model, &iter); - set_one_cylinder(i, cyl, model, &iter); + set_one_cylinder(cyl, model, &iter); } } @@ -740,7 +740,7 @@ static void edit_cb(GtkButton *button, GtkTreeView *tree_view) if (!edit_cylinder_dialog(index, &cyl)) return; - set_one_cylinder(index, &cyl, model, &iter); + set_one_cylinder(&cyl, model, &iter); repaint_dive(); } @@ -756,7 +756,7 @@ static void add_cb(GtkButton *button, GtkTreeView *tree_view) return; gtk_list_store_append(model, &iter); - set_one_cylinder(index, &cyl, model, &iter); + set_one_cylinder(&cyl, model, &iter); selection = gtk_tree_view_get_selection(tree_view); gtk_tree_selection_select_iter(selection, &iter); |