[PATCH] Remove unused arg in plot_cylinder_pressure

Anton Lundin glance at acc.umu.se
Fri Oct 11 09:52:38 UTC 2013


Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 qt-ui/profilegraphics.cpp | 4 ++--
 qt-ui/profilegraphics.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 749556b..9e129f2 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -293,7 +293,7 @@ void ProfileGraphicsView::plot(struct dive *d, bool forceRedraw)
 	plot_temperature_profile();
 
 	/* Cylinder pressure plot */
-	plot_cylinder_pressure(dc);
+	plot_cylinder_pressure();
 
 	/* Text on top of all graphs.. */
 	plot_temperature_text();
@@ -691,7 +691,7 @@ void ProfileGraphicsView::plot_single_temp_text(int sec, int mkelvin)
 	plot_text(&tro, QPointF(sec, mkelvin), QString("%1%2").arg(deg, 0, 'f', 1).arg(unit)); //"%.2g%s"
 }
 
-void ProfileGraphicsView::plot_cylinder_pressure(struct divecomputer *dc)
+void ProfileGraphicsView::plot_cylinder_pressure()
 {
 	int i;
 	int last = -1, last_index = -1;
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h
index 7cbc53e..469bf87 100644
--- a/qt-ui/profilegraphics.h
+++ b/qt-ui/profilegraphics.h
@@ -158,7 +158,7 @@ private:
 	void plot_events(struct divecomputer *dc);
 	void plot_one_event(struct event *event);
 	void plot_temperature_profile();
-	void plot_cylinder_pressure(struct divecomputer *dc);
+	void plot_cylinder_pressure();
 	void plot_temperature_text();
 	void plot_single_temp_text(int sec, int mkelvin);
 	void plot_depth_text();
-- 
1.8.1.2



More information about the subsurface mailing list