mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdBurndown: Code cleanup
This commit is contained in:
parent
c646d7c9d2
commit
651c39c881
1 changed files with 10 additions and 28 deletions
|
@ -50,35 +50,22 @@ extern Context context;
|
|||
class Bar
|
||||
{
|
||||
public:
|
||||
Bar ();
|
||||
Bar () = default;
|
||||
Bar (const Bar&);
|
||||
Bar& operator= (const Bar&);
|
||||
~Bar ();
|
||||
~Bar () = default;
|
||||
|
||||
public:
|
||||
int _offset; // from left of chart
|
||||
std::string _major_label; // x-axis label, major (year/-/month)
|
||||
std::string _minor_label; // x-axis label, minor (month/week/day)
|
||||
int _pending; // Number of pending tasks in period
|
||||
int _started; // Number of started tasks in period
|
||||
int _done; // Number of done tasks in period
|
||||
int _added; // Number added in period
|
||||
int _removed; // Number removed in period
|
||||
int _offset {0}; // from left of chart
|
||||
std::string _major_label {""}; // x-axis label, major (year/-/month)
|
||||
std::string _minor_label {""}; // x-axis label, minor (month/week/day)
|
||||
int _pending {0}; // Number of pending tasks in period
|
||||
int _started {0}; // Number of started tasks in period
|
||||
int _done {0}; // Number of done tasks in period
|
||||
int _added {0}; // Number added in period
|
||||
int _removed {0}; // Number removed in period
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Bar::Bar ()
|
||||
: _offset (0)
|
||||
, _major_label ("")
|
||||
, _minor_label ("")
|
||||
, _pending (0)
|
||||
, _started (0)
|
||||
, _done (0)
|
||||
, _added (0)
|
||||
, _removed (0)
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Bar::Bar (const Bar& other)
|
||||
{
|
||||
|
@ -103,11 +90,6 @@ Bar& Bar::operator= (const Bar& other)
|
|||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Bar::~Bar ()
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Data gathering algorithm:
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue