summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-07 16:03:16 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-07 16:03:16 -0700
commit76af28fee664ee78ff77bf5afd03cdd66b89d78f (patch)
tree9077ca2bc87112acf6b71f716e9f0b0feddd076d /profile.c
parentcfcc811efe5aa3d93cebbc0ceb91a4900b14ec4e (diff)
downloadsubsurface-76af28fee664ee78ff77bf5afd03cdd66b89d78f.tar.gz
Clean up plot_text_samples() further
We don't actually use the 'dive' structure any more, since we now always have the sample pointers directly. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/profile.c b/profile.c
index 6475008c9..1d5b21cbd 100644
--- a/profile.c
+++ b/profile.c
@@ -167,9 +167,7 @@ static void render_depth_sample(struct graphics_context *gc, struct sample *samp
plot_text(gc, &tro, sec, depth.mm, fmt, d);
}
-
-void plot_text_samples(struct dive *dive, struct graphics_context *gc,
- struct sample *a, struct sample *b)
+static void plot_text_samples(struct graphics_context *gc, struct sample *a, struct sample *b)
{
struct sample *max, *min;
@@ -183,7 +181,7 @@ void plot_text_samples(struct dive *dive, struct graphics_context *gc,
render_depth_sample(gc, max);
min = next_minmax(max, b, 0);
if (min) {
- plot_text_samples(dive, gc, min, b);
+ plot_text_samples(gc, min, b);
return;
}
}
@@ -211,7 +209,7 @@ static void plot_depth_text(struct dive *dive, struct graphics_context *gc)
sample = dive->sample;
end = dive->sample + dive->samples - 1;
- plot_text_samples(dive, gc, sample, end);
+ plot_text_samples(gc, sample, end);
}
static void plot_depth_profile(struct dive *dive, struct graphics_context *gc)