From cc1b3a482bb6e1fbe19bcd270442fc70cd34280d Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Sun, 4 Mar 2012 04:54:38 +0800 Subject: [PATCH] Remove unused accessor --- src/Session.cpp | 5 +---- src/Session.h | 5 ----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Session.cpp b/src/Session.cpp index c93bca751..1362b79f3 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -216,10 +216,7 @@ void Session::setDarkBackground(bool darkBackground) { _hasDarkBackground = darkBackground; } -bool Session::hasDarkBackground() const -{ - return _hasDarkBackground; -} + bool Session::isRunning() const { return _shellProcess && (_shellProcess->state() == QProcess::Running); diff --git a/src/Session.h b/src/Session.h index a44c1159f..ce2457a80 100644 --- a/src/Session.h +++ b/src/Session.h @@ -317,11 +317,6 @@ public: * This has no effect once the session is running. */ void setDarkBackground(bool darkBackground); - /** - * Returns true if the session has a dark background. - * See setDarkBackground() - */ - bool hasDarkBackground() const; /** * Attempts to get the shell program to redraw the current display area.