1) Delete a few commented-out lines that I created myself.
2) Delete two groups of 4 instructions which are duplicated in the existing code.

Signed-off-by: willem ferguson <[email protected]>
---

>From 348a26b1bcbcb3774eb6e4b3a35ca4b4a4e82438 Mon Sep 17 00:00:00 2001
From: willem ferguson <[email protected]>
Date: Fri, 9 Jan 2015 09:03:13 +0200
Subject: [PATCH 2/2] Minor code cleanup in profilewidget2.cpp

1) Delete a few commented-out lines that I created myself.
2) Delete two groups of 4 instructions which are duplicated in the existing code.

Signed-off-by: willem ferguson <[email protected]>
---
 qt-ui/profile/profilewidget2.cpp | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 7d29f7a..aa86a5d 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -532,9 +532,6 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
 	}
 
 	o2SetpointGasItem->setVisible(current_dive && (currentdc->dctype == CCR) && prefs.show_ccr_setpoint && prefs.pp_graphs.po2);
-//		o2SetpointGasItem->setVisible(true);
-//	else
-//		o2SetpointGasItem->setVisible(false);
 
 	/* This struct holds all the data that's about to be plotted.
 	 * I'm not sure this is the best approach ( but since we are
@@ -688,10 +685,6 @@ void ProfileWidget2::settingsChanged()
 		temperatureAxis->setPos(itemPos.temperature.pos.on);
 		temperatureAxis->animateChangeLine(itemPos.temperature.intermediate);
 		cylinderPressureAxis->animateChangeLine(itemPos.cylinder.intermediate);
-		gasYAxis->setPos(itemPos.partialPressure.pos.on);
-		gasYAxis->animateChangeLine(itemPos.partialPressure.expanded);
-		percentageAxis->setPos(itemPos.percentage.pos.on);
-		percentageAxis->setLine(itemPos.percentage.expanded);
 		heartBeatAxis->setPos(itemPos.heartBeat.pos.on);
 		heartBeatAxis->setLine(itemPos.heartBeat.expanded);
 		if (prefs.tankbar) {
@@ -962,10 +955,6 @@ void ProfileWidget2::setProfileState()
 		temperatureAxis->setPos(itemPos.temperature.pos.on);
 		temperatureAxis->animateChangeLine(itemPos.temperature.intermediate);
 		cylinderPressureAxis->animateChangeLine(itemPos.cylinder.intermediate);
-		gasYAxis->setPos(itemPos.partialPressure.pos.on);
-		gasYAxis->animateChangeLine(itemPos.partialPressure.expanded);
-		percentageAxis->setPos(itemPos.percentage.pos.on);
-		percentageAxis->setLine(itemPos.percentage.expanded);
 		heartBeatAxis->setPos(itemPos.heartBeat.pos.on);
 		heartBeatAxis->setLine(itemPos.heartBeat.expanded);
 		if (prefs.tankbar) {
-- 
1.9.1

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to