Code Cleanup
- Clean duplicated and unused function. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
committed by
Paul Beckingham
parent
0f2901c60c
commit
ebdcccbf41
10
src/Task.cpp
10
src/Task.cpp
@@ -277,16 +277,6 @@ time_t Task::get_date (const std::string& name) const
|
|||||||
return 0;
|
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)
|
void Task::set (const std::string& name, const std::string& value)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ public:
|
|||||||
int get_int (const std::string&) const;
|
int get_int (const std::string&) const;
|
||||||
unsigned long get_ulong (const std::string&) const;
|
unsigned long get_ulong (const std::string&) const;
|
||||||
time_t get_date (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&, const std::string&);
|
||||||
void set (const std::string&, int);
|
void set (const std::string&, int);
|
||||||
void remove (const std::string&);
|
void remove (const std::string&);
|
||||||
|
|||||||
Reference in New Issue
Block a user