[glom] Remove commented code.



commit 3343f85a26bb41738c1f369614c84e741e90670d
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Jan 24 21:05:16 2010 +0100

    Remove commented code.

 glom/frame_glom.cc                               |    2 +-
 glom/libglom/connectionpool_backends/postgres.cc |    8 --------
 2 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index 3f05e20..6d42620 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -2596,7 +2596,7 @@ bool Frame_Glom::connection_request_password_and_attempt(bool& database_not_foun
 bool Frame_Glom::create_database(const Glib::ustring& database_name, const Glib::ustring& title)
 {
 #if 1
-  // This seems to increase the change that the database creation does not
+  // This seems to increase the chance that the database creation does not
   // fail due to the "source database is still in use" error. armin.
   //std::cout << "Going to sleep" << std::endl;
   Glib::usleep(500 * 1000);
diff --git a/glom/libglom/connectionpool_backends/postgres.cc b/glom/libglom/connectionpool_backends/postgres.cc
index 34e02ea..2a75d5f 100644
--- a/glom/libglom/connectionpool_backends/postgres.cc
+++ b/glom/libglom/connectionpool_backends/postgres.cc
@@ -399,14 +399,6 @@ bool Postgres::attempt_create_database(const Glib::ustring& database_name, const
                                                             ex);
   if(ex.get())
     return false;
-
-  //TODO: Why is this here but not in the EXCEPTIONS_ENABLED part?
-  // jhs: Does look like a bug to me, shouldn't be there
-#if 0
-  op = cnc->create_operation(Gnome::Gda::SERVER_OPERATION_CREATE_DB, set, ex.get());
-  if(ex.get())
-    return false;
-#endif
 #endif
   g_assert(op);
 #ifdef GLIBMM_EXCEPTIONS_ENABLED



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]