From 507b8e4f1c48a5f6c9315865c16c6ad70a24de5c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 14 May 2018 15:46:11 -0700 Subject: [PATCH] ircd::db: Minor cleanup. --- include/ircd/db/database/column.h | 6 ++++-- ircd/db.cc | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/ircd/db/database/column.h b/include/ircd/db/database/column.h index f4e8961db..5224cf401 100644 --- a/include/ircd/db/database/column.h +++ b/include/ircd/db/database/column.h @@ -20,11 +20,10 @@ /// points to an internally managed database::column. namespace ircd::db { - std::shared_ptr shared_from(const database::column &); - std::shared_ptr shared_from(database::column &); const database::descriptor &describe(const database::column &); const std::string &name(const database::column &); uint32_t id(const database::column &); + void drop(database::column &); // Request to erase column from db } @@ -57,4 +56,7 @@ struct ircd::db::database::column final column &operator=(column &&) = delete; column &operator=(const column &) = delete; ~column() noexcept; + + friend std::shared_ptr shared_from(const column &); + friend std::shared_ptr shared_from(column &); }; diff --git a/ircd/db.cc b/ircd/db.cc index 7f54f58fb..6008977a6 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -4313,7 +4313,6 @@ const return c->descriptor; } -/////////////////////////////////////////////////////////////////////////////// // // column::const_iterator //