dead code removal

This commit is contained in:
Eelke Klein 2017-02-02 07:07:02 +01:00
parent fd47540ecd
commit fafda5a07f
3 changed files with 0 additions and 84 deletions

View file

@ -1,8 +0,0 @@
#include "dbschema_database.h"
using namespace dbschema;
Database::Database()
{
}

View file

@ -1,74 +0,0 @@
#ifndef DBSCHEMA_DATABASE_H
#define DBSCHEMA_DATABASE_H
#include <QDateTime>
#include <QString>
#include <map>
namespace dbschema {
class Role {
public:
int oid;
QString rolname;
bool super;
bool inherit;
bool createrole;
bool createdb;
bool canlogin;
bool replication;
bool bypassRls;
int connLimit;
QDateTime validUntil;
};
class Server {
public:
private:
using t_RoleList = std::map<int, Role*>;
// tablespaces
};
class Schema {
int oid;
QString schema;
};
class Table {
public:
int oid;
Schema *schema;
QString tableName;
};
/** Holds all the definitions from a single database
This class is responsible for cleaning up all dynamically allocated objects.
*/
class Database {
public:
Database();
~Database();
Database(const Database &) = delete;
Database& operator=(const Database &) = delete;
private:
using t_SchemaList = std::map<int, Schema*>;
using t_TableList = std::map<int, Table*>;
t_SchemaList m_schemas; // Alphabetically ordered
t_TableList m_tables;
};
}
#endif // DBSCHEMA_DATABASE_H

View file

@ -34,7 +34,6 @@ SOURCES += main.cpp\
connectionlistmodel.cpp \ connectionlistmodel.cpp \
connectionconfig.cpp \ connectionconfig.cpp \
backuprestore.cpp \ backuprestore.cpp \
dbschema_database.cpp \
querytab.cpp \ querytab.cpp \
stopwatch.cpp \ stopwatch.cpp \
util.cpp \ util.cpp \
@ -70,7 +69,6 @@ HEADERS += mainwindow.h \
connectionconfig.h \ connectionconfig.h \
scopeguard.h \ scopeguard.h \
expected.h \ expected.h \
dbschema_database.h \
querytab.h \ querytab.h \
stopwatch.h \ stopwatch.h \
util.h \ util.h \