mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Columns: Removed unnecessary virtual overrides
This commit is contained in:
parent
b37caeaa68
commit
d753bb747b
25 changed files with 7 additions and 85 deletions
|
@ -66,12 +66,6 @@ ColumnDate::~ColumnDate ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnDate::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Set the minimum and maximum widths for the value.
|
||||
void ColumnDate::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnDate ();
|
||||
virtual ~ColumnDate ();
|
||||
|
||||
virtual bool validate (std::string&);
|
||||
virtual void measure (Task&, unsigned int&, unsigned int&);
|
||||
virtual void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
};
|
||||
|
|
|
@ -57,12 +57,6 @@ ColumnDepends::~ColumnDepends ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnDepends::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Overriden so that style <----> label are linked.
|
||||
// Note that you can not determine which gets called first.
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnDepends ();
|
||||
~ColumnDepends ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void setStyle (const std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
|
|
@ -85,12 +85,6 @@ ColumnDescription::~ColumnDescription ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnDescription::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Set the minimum and maximum widths for the value.
|
||||
void ColumnDescription::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnDescription ();
|
||||
~ColumnDescription ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
||||
|
|
|
@ -50,12 +50,6 @@ ColumnID::~ColumnID ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnID::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Set the minimum and maximum widths for the value.
|
||||
void ColumnID::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnID ();
|
||||
~ColumnID ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
||||
|
|
|
@ -50,12 +50,6 @@ ColumnIMask::~ColumnIMask ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnIMask::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Set the minimum and maximum widths for the value.
|
||||
void ColumnIMask::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnIMask ();
|
||||
~ColumnIMask ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
||||
|
|
|
@ -50,12 +50,6 @@ ColumnMask::~ColumnMask ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnMask::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Set the minimum and maximum widths for the value.
|
||||
void ColumnMask::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnMask ();
|
||||
~ColumnMask ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
||||
|
|
|
@ -50,12 +50,6 @@ ColumnParent::~ColumnParent ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnParent::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Set the minimum and maximum widths for the value.
|
||||
void ColumnParent::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnParent ();
|
||||
~ColumnParent ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
||||
|
|
|
@ -53,12 +53,6 @@ ColumnProject::~ColumnProject ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnProject::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Set the minimum and maximum widths for the value.
|
||||
void ColumnProject::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnProject ();
|
||||
~ColumnProject ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
||||
|
|
|
@ -54,12 +54,6 @@ ColumnRecur::~ColumnRecur ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnRecur::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Overriden so that style <----> label are linked.
|
||||
// Note that you can not determine which gets called first.
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnRecur ();
|
||||
~ColumnRecur ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void setStyle (const std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
|
|
@ -50,12 +50,6 @@ ColumnStatus::~ColumnStatus ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnStatus::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Overriden so that style <----> label are linked.
|
||||
// Note that you can not determine which gets called first.
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnStatus ();
|
||||
~ColumnStatus ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void setStyle (const std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
|
|
@ -53,12 +53,6 @@ ColumnTags::~ColumnTags ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnTags::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Overriden so that style <----> label are linked.
|
||||
// Note that you can not determine which gets called first.
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnTags ();
|
||||
~ColumnTags ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void setStyle (const std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
|
|
@ -50,12 +50,6 @@ ColumnUUID::~ColumnUUID ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnUUID::validate (std::string& value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Set the minimum and maximum widths for the value.
|
||||
void ColumnUUID::measure (Task&, unsigned int& minimum, unsigned int& maximum)
|
||||
|
|
|
@ -39,7 +39,6 @@ public:
|
|||
ColumnUUID ();
|
||||
~ColumnUUID ();
|
||||
|
||||
bool validate (std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
||||
|
|
|
@ -45,7 +45,13 @@ class TestBurndownCommand(TestCase):
|
|||
cls.t("2 start")
|
||||
cls.t("add three")
|
||||
cls.t("3 delete")
|
||||
cls.t("log four")
|
||||
cls.t("add four")
|
||||
cls.t("4 start")
|
||||
cls.t("4 done")
|
||||
cls.t("add five")
|
||||
cls.t("5 start")
|
||||
cls.t("5 done")
|
||||
cls.t("log six")
|
||||
|
||||
def setUp(self):
|
||||
"""Executed before each test in the class"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue