[core] Remove unused bool() functions

This commit is contained in:
Bruno de Oliveira Abinader
2017-04-11 17:04:43 +03:00
committed by John Firebaugh
parent ef99b108fe
commit 04a3a7383a
4 changed files with 0 additions and 23 deletions

View File

@@ -34,8 +34,6 @@ public:
const T & asConstant() const { return value.template get< T >(); }
const CameraFunction<T>& asCameraFunction() const { return value.template get<CameraFunction<T>>(); }
explicit operator bool() const { return !isUndefined(); };
template <typename Evaluator>
auto evaluate(const Evaluator& evaluator) const {
return Value::visit(value, evaluator);

View File

@@ -110,10 +110,6 @@ Database &Database::operator=(Database &&other) {
Database::~Database() {
}
Database::operator bool() const {
return impl.operator bool();
}
void Database::setBusyTimeout(std::chrono::milliseconds timeout) {
assert(impl);
const int err = sqlite3_busy_timeout(impl->db,
@@ -158,10 +154,6 @@ Statement &Statement::operator=(Statement &&other) {
Statement::~Statement() {
}
Statement::operator bool() const {
return impl.operator bool();
}
template <> void Statement::bind(int offset, std::nullptr_t) {
assert(impl);
impl->check(sqlite3_bind_null(impl->stmt, offset));

View File

@@ -46,8 +46,6 @@ public:
~Database();
Database &operator=(Database &&);
explicit operator bool() const;
void setBusyTimeout(std::chrono::milliseconds);
void exec(const std::string &sql);
Statement prepare(const char *query);
@@ -69,8 +67,6 @@ public:
~Statement();
Statement &operator=(Statement &&);
explicit operator bool() const;
template <typename T> void bind(int offset, T value);
// Text

View File

@@ -130,10 +130,6 @@ Database &Database::operator=(Database &&other) {
Database::~Database() {
}
Database::operator bool() const {
return impl.operator bool();
}
void Database::setBusyTimeout(std::chrono::milliseconds timeout) {
assert(impl);
std::string timeoutStr = mbgl::util::toString(timeout.count());
@@ -191,11 +187,6 @@ Statement &Statement::operator=(Statement &&other) {
Statement::~Statement() {
}
Statement::operator bool() const {
assert(impl);
return impl.operator bool();
}
template void Statement::bind(int, int64_t);
template <typename T>