From fafda5a07f5cfe3ae00673f95d39010eae9a896a Mon Sep 17 00:00:00 2001 From: Eelke Klein Date: Thu, 2 Feb 2017 07:07:02 +0100 Subject: [PATCH] dead code removal --- dbschema_database.cpp | 8 ----- dbschema_database.h | 74 ------------------------------------------- pglab.pro | 2 -- 3 files changed, 84 deletions(-) delete mode 100644 dbschema_database.cpp delete mode 100644 dbschema_database.h diff --git a/dbschema_database.cpp b/dbschema_database.cpp deleted file mode 100644 index 09b6029..0000000 --- a/dbschema_database.cpp +++ /dev/null @@ -1,8 +0,0 @@ -#include "dbschema_database.h" - -using namespace dbschema; - -Database::Database() -{ - -} diff --git a/dbschema_database.h b/dbschema_database.h deleted file mode 100644 index 5b30eb9..0000000 --- a/dbschema_database.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef DBSCHEMA_DATABASE_H -#define DBSCHEMA_DATABASE_H - -#include -#include -#include - - -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; - // 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; - using t_TableList = std::map; - - t_SchemaList m_schemas; // Alphabetically ordered - t_TableList m_tables; - - - }; - -} - -#endif // DBSCHEMA_DATABASE_H diff --git a/pglab.pro b/pglab.pro index f56d2f2..26a73bc 100644 --- a/pglab.pro +++ b/pglab.pro @@ -34,7 +34,6 @@ SOURCES += main.cpp\ connectionlistmodel.cpp \ connectionconfig.cpp \ backuprestore.cpp \ - dbschema_database.cpp \ querytab.cpp \ stopwatch.cpp \ util.cpp \ @@ -70,7 +69,6 @@ HEADERS += mainwindow.h \ connectionconfig.h \ scopeguard.h \ expected.h \ - dbschema_database.h \ querytab.h \ stopwatch.h \ util.h \