[glom] PostgresSelf: Remove unused code.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] PostgresSelf: Remove unused code.
- Date: Wed, 30 Mar 2016 13:17:15 +0000 (UTC)
commit 0ac977594ce11ba5d383e85b288d48ed1fd87275
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Mar 30 12:00:53 2016 +0200
PostgresSelf: Remove unused code.
Found by cppcheck.
.../connectionpool_backends/postgres_self.cc | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/glom/libglom/connectionpool_backends/postgres_self.cc
b/glom/libglom/connectionpool_backends/postgres_self.cc
index c9f8026..cd2f1db 100644
--- a/glom/libglom/connectionpool_backends/postgres_self.cc
+++ b/glom/libglom/connectionpool_backends/postgres_self.cc
@@ -465,21 +465,7 @@ bool PostgresSelfHosted::set_network_shared(const SlotProgress& /* slot_progress
m_network_shared = network_shared;
- const auto dbdir_uri = m_database_directory_uri;
-
- std::string dbdir;
- try
- {
- dbdir = Glib::filename_from_uri(dbdir_uri);
- }
- catch(const Glib::ConvertError& ex)
- {
- std::cerr << G_STRFUNC << "Glib::filename_from_uri() failed: " << ex.what() << std::endl;
-
- return false;
- }
-
- const std::string dbdir_uri_config = dbdir_uri + "/config";
+ const std::string dbdir_uri_config = m_database_directory_uri + "/config";
const char* default_conf_contents = nullptr;
// Choose the configuration contents based on
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]