From 63f2480b90e5852cd56162394dd918c93a62ee87 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Fri, 26 Aug 2011 15:06:02 +0100 Subject: [PATCH] Remove unused UpdateDialogGtk::restartApp() accessor --- src/UpdateDialogGtk.cpp | 10 +--------- src/UpdateDialogGtk.h | 3 --- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/UpdateDialogGtk.cpp b/src/UpdateDialogGtk.cpp index 4f9ebde..e3a0b20 100644 --- a/src/UpdateDialogGtk.cpp +++ b/src/UpdateDialogGtk.cpp @@ -7,16 +7,10 @@ #include UpdateDialogGtk::UpdateDialogGtk() -: m_restartApp(false) -, m_hadError(false) +: m_hadError(false) { } -bool UpdateDialogGtk::restartApp() const -{ - return m_restartApp; -} - void UpdateDialogGtk::init(int argc, char** argv) { gtk_init(&argc,&argv); @@ -67,8 +61,6 @@ void UpdateDialogGtk::exec() void UpdateDialogGtk::finish(GtkWidget* widget, gpointer _dialog) { - UpdateDialogGtk* dialog = static_cast(_dialog); - dialog->m_restartApp = true; gtk_main_quit(); } diff --git a/src/UpdateDialogGtk.h b/src/UpdateDialogGtk.h index 640ffe8..0769b39 100644 --- a/src/UpdateDialogGtk.h +++ b/src/UpdateDialogGtk.h @@ -10,8 +10,6 @@ class UpdateDialogGtk : public UpdateObserver public: UpdateDialogGtk(); - bool restartApp() const; - void init(int argc, char** argv); void exec(); @@ -30,7 +28,6 @@ class UpdateDialogGtk : public UpdateObserver GtkWidget* m_progressLabel; GtkWidget* m_finishButton; GtkWidget* m_progressBar; - bool m_restartApp; bool m_hadError; };