[PATCH] Remove some unused variables

Anton Lundin glance at acc.umu.se
Mon Dec 9 13:37:50 UTC 2013


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

diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index d657572..a3c5091 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -150,8 +150,6 @@ private:
 	double min;
 	double max;
 	double interval;
-	double posBegin;
-	double posEnd;
 	double tickSize;
 	QColor textColor;
 };
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 176225a..f99fd4d 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -492,8 +492,6 @@ void ProfileGraphicsView::plot_depth_scale()
 		case units::FEET: marker = 9144; break;	/* 30 ft */
 	}
 
-	QColor c(getColor(DEPTH_GRID));
-
 	/* don't write depth labels all the way to the bottom as
 	 * there may be other graphs below the depth plot (like
 	 * partial pressure graphs) where this would look out
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h
index be9c707..29315a7 100644
--- a/qt-ui/profilegraphics.h
+++ b/qt-ui/profilegraphics.h
@@ -104,7 +104,6 @@ public:
 	struct event* ev;
 
 private:
-	ToolTipItem *controller;
 	QString text;
 	bool isGrayscale;
 
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index f0e68a4..a8421de 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -111,7 +111,6 @@ static char *prepare_dives_for_divelogs(const bool selected)
 	xmlDoc *transformed;
 	struct zip_source *s[dive_table.nr];
 	struct zip *zip;
-	char *error = NULL;
 	const QString errPrefix("divelog.de-upload:");
 
 	/* generate a random filename and create/open that file with zip_open */
@@ -755,7 +754,6 @@ void DivelogsDeWebServices::downloadFinished()
 	// now allow the user to cancel or accept
 	ui.buttonBox->button(QDialogButtonBox::Apply)->setEnabled(true);
 
-close_zip:
 	zip_close(zip);
 	zipFile.close();
 }
-- 
1.8.3.2



More information about the subsurface mailing list