mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Clean duplicated and unused function. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
0f2901c60c
commit
ebdcccbf41
2 changed files with 0 additions and 11 deletions
10
src/Task.cpp
10
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)
|
||||
{
|
||||
|
|
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue