From 9ce2d6fc0e1d7591d0d588a16ab6589910092cfc Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 2 Jun 2021 22:51:31 +0200 Subject: Make proj_context_set_autoclose_database() a no-op as it would defeat the purpose of the new database connection sharing --- include/proj/internal/io_internal.hpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'include') diff --git a/include/proj/internal/io_internal.hpp b/include/proj/internal/io_internal.hpp index ccc3787e..a57ca5ce 100644 --- a/include/proj/internal/io_internal.hpp +++ b/include/proj/internal/io_internal.hpp @@ -173,7 +173,6 @@ struct projCppContext { PJ_CONTEXT *ctx_ = nullptr; std::string dbPath_{}; std::vector auxDbPaths_{}; - bool autoCloseDb_ = false; projCppContext(const projCppContext &) = delete; projCppContext &operator=(const projCppContext &) = delete; @@ -201,17 +200,6 @@ struct projCppContext { return auxDbPaths_; } - void setAutoCloseDb(bool autoClose) { - autoCloseDb_ = autoClose; - autoCloseDbIfNeeded(); - } - inline bool getAutoCloseDb() const { return autoCloseDb_; } - - // cppcheck-suppress functionStatic - void closeDb(); - - void autoCloseDbIfNeeded(); - NS_PROJ::io::DatabaseContextNNPtr getDatabaseContext(); }; -- cgit v1.2.3