]> git.tdb.fi Git - ext/subsurface.git/commitdiff
More removal of unused arguments
authorDirk Hohndel <dirk@hohndel.org>
Thu, 5 Jan 2012 16:12:57 +0000 (08:12 -0800)
committerDirk Hohndel <dirk@hohndel.org>
Thu, 5 Jan 2012 16:16:50 +0000 (08:16 -0800)
Just trying to clean up the code a bit.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
equipment.c
profile.c

index d2c7891aef4569c334d2a3c210be73aaf51d25cc..e4f880f64e584ca1eb29183e0ceddaca973360ef 100644 (file)
@@ -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);
index 822e30c0e11e5c217e84235578cfde08b6445fdb..137ed6f88778c2dea942c2dd377b43dea11497d2 100644 (file)
--- a/profile.c
+++ b/profile.c
@@ -1014,8 +1014,7 @@ static void dump_pr_track(pr_track_t **track_pr)
        }
 }
 
-static void fill_missing_tank_pressures(struct dive *dive, struct plot_info *pi,
-                                       pr_track_t **track_pr)
+static void fill_missing_tank_pressures(struct plot_info *pi, pr_track_t **track_pr)
 {
        pr_track_t *list = NULL;
        pr_track_t *nlist = NULL;
@@ -1338,7 +1337,7 @@ static struct plot_info *create_plot_info(struct dive *dive, int nr_samples, str
        pi->meandepth = dive->meandepth.mm;
 
        if (missing_pr) {
-               fill_missing_tank_pressures(dive, pi, track_pr);
+               fill_missing_tank_pressures(pi, track_pr);
        }
        for (cyl = 0; cyl < MAX_CYLINDERS; cyl++)
                list_free(track_pr[cyl]);