Skip to content

Commit

Permalink
Merge pull request #3 from matthewvon/master
Browse files Browse the repository at this point in the history
Need null StatsTable constructor/destructor for clean library use.
  • Loading branch information
matthewvon authored Jan 8, 2023
2 parents ab7a3a6 + 14ea796 commit b01a47c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions stats_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ StatsTable* StatsTable::NewStatsTable(bool StartWorker) {

} // StatsTable::NewStatsTable

StatsTable::StatsTable() {};


/**
* Initialize the data members.
Expand Down
7 changes: 2 additions & 5 deletions stats_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class StatsTable {
* Member functions
****************************************************************/
public:
StatsTable();
StatsTable() {};

virtual ~StatsTable();
virtual ~StatsTable() {};

static StatsTable* NewStatsTable(bool StartWorker = true);

Expand All @@ -41,9 +41,6 @@ class StatsTable {
virtual bool AddTable(rocksdb::DB * dbase,
unsigned TableId, const std::string &name) = 0;

/// debug
virtual void Dump() = 0;

private:
StatsTable(const StatsTable &); //!< disabled: copy operator
StatsTable &operator=(const StatsTable &); //!< disabled: assignment operator
Expand Down
3 changes: 0 additions & 3 deletions stats_table_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ class StatsTableImpl : public StatsTable {
bool AddTable(rocksdb::DB * dbase,
unsigned TableId, const std::string &name) override;

/// debug
void Dump() override;

protected:
void UpdateTableNameList(unsigned TableId, const std::string &name);

Expand Down

0 comments on commit b01a47c

Please sign in to comment.