Columns: Removed unnecessary virtual overrides

This commit is contained in:
Paul Beckingham 2015-07-18 00:43:51 -04:00
parent b37caeaa68
commit d753bb747b
25 changed files with 7 additions and 85 deletions

View file

@ -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)

View file

@ -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&);
};

View file

@ -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.

View file

@ -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&);

View file

@ -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)

View file

@ -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&);

View file

@ -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)

View file

@ -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&);

View file

@ -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)

View file

@ -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&);

View file

@ -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)

View file

@ -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&);

View file

@ -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)

View file

@ -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&);

View file

@ -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)

View file

@ -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&);

View file

@ -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.

View file

@ -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&);

View file

@ -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.

View file

@ -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&);

View file

@ -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.

View file

@ -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&);

View file

@ -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)

View file

@ -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&);

View file

@ -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"""