mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
Remove references to TDB2::data_size
This value will is not relevant for TaskChampion.
This commit is contained in:
parent
e3ef6c504a
commit
f452100588
3 changed files with 0 additions and 14 deletions
|
@ -1285,12 +1285,6 @@ int TDB2::num_reverts_possible ()
|
|||
return std::count(lines.begin(), lines.end(), "---");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
size_t TDB2::data_size ()
|
||||
{
|
||||
return pending._file.size () + completed._file.size () + undo._file.size () + backlog._file.size ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void TDB2::dump ()
|
||||
{
|
||||
|
|
|
@ -139,7 +139,6 @@ public:
|
|||
|
||||
int num_local_changes ();
|
||||
int num_reverts_possible ();
|
||||
size_t data_size ();
|
||||
|
||||
void dump ();
|
||||
|
||||
|
|
|
@ -62,9 +62,6 @@ int CmdStats::execute (std::string& output)
|
|||
|
||||
std::string dateformat = Context::getContext ().config.get ("dateformat");
|
||||
|
||||
// Go get the file sizes.
|
||||
size_t dataSize = Context::getContext ().tdb2.data_size ();
|
||||
|
||||
// Count the possible reverts.
|
||||
int undoCount = Context::getContext ().tdb2.num_reverts_possible ();
|
||||
|
||||
|
@ -192,10 +189,6 @@ int CmdStats::execute (std::string& output)
|
|||
view.set (row, 0, "Blocking tasks");
|
||||
view.set (row, 1, blockingT);
|
||||
|
||||
row = view.addRow ();
|
||||
view.set (row, 0, "Data size");
|
||||
view.set (row, 1, formatBytes (dataSize));
|
||||
|
||||
row = view.addRow ();
|
||||
view.set (row, 0, "Undo transactions");
|
||||
view.set (row, 1, undoCount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue