mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Database: Cleaned up ::dump output
This commit is contained in:
parent
38e7dbf68a
commit
b4adbd9d70
1 changed files with 2 additions and 5 deletions
|
@ -28,7 +28,6 @@
|
|||
#include <Database.h>
|
||||
#include <FS.h>
|
||||
#include <sstream>
|
||||
#include <iostream> // TODO Remove
|
||||
#include <iomanip>
|
||||
#include <ctime>
|
||||
|
||||
|
@ -46,8 +45,6 @@ void Database::initialize (const std::string& location)
|
|||
{
|
||||
if (file != _current)
|
||||
_data_files.push_back (file);
|
||||
|
||||
std::cout << "# data file " << file << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -58,9 +55,9 @@ void Database::initialize (const std::string& location)
|
|||
std::string Database::dump () const
|
||||
{
|
||||
std::stringstream out;
|
||||
out << "# Database\n";
|
||||
out << "Database\n";
|
||||
for (const auto& file : _data_files)
|
||||
out << "# Data: " << file << "\n";
|
||||
out << " Data: " << file << "\n";
|
||||
|
||||
return out.str ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue