From ebdcccbf41f3dbba2afc287feb62f11d04ff711e Mon Sep 17 00:00:00 2001 From: Louis-Claude Canon Date: Sun, 29 Apr 2012 11:00:37 +0200 Subject: [PATCH] Code Cleanup - Clean duplicated and unused function. Signed-off-by: Paul Beckingham --- src/Task.cpp | 10 ---------- src/Task.h | 1 - 2 files changed, 11 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index 4268f754d..635d9a04f 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -277,16 +277,6 @@ time_t Task::get_date (const std::string& name) const return 0; } -//////////////////////////////////////////////////////////////////////////////// -time_t Task::get_duration (const std::string& name) const -{ - Task::const_iterator i = this->find (name); - if (i != this->end ()) - return (time_t) strtoul (i->second.c_str (), NULL, 10); - - return 0; -} - //////////////////////////////////////////////////////////////////////////////// void Task::set (const std::string& name, const std::string& value) { diff --git a/src/Task.h b/src/Task.h index 87f33d8bf..8e2a7515e 100644 --- a/src/Task.h +++ b/src/Task.h @@ -74,7 +74,6 @@ public: int get_int (const std::string&) const; unsigned long get_ulong (const std::string&) const; time_t get_date (const std::string&) const; - time_t get_duration (const std::string&) const; void set (const std::string&, const std::string&); void set (const std::string&, int); void remove (const std::string&);