[glom] Remove old code



commit 2fd1e1a24b0ac9f63e8f0b99251dbb1143c64012
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Jul 5 00:01:02 2009 +0200

    Remove old code
    to check for developer mode in client-only builds.

 ChangeLog                         |    5 +++++
 glom/libglom/document/document.cc |    6 ------
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ad713bc..dad41f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-05  Murray Cumming  <murrayc murrayc com>
+
+	* glom/libglom/document/document.cc: load_after(): Remove old code 
+	to check for developer mode in client-only builds.
+
 2009-07-04  Murray Cumming  <murrayc murrayc com>
 
 	Fix loading of the versioned python module.
diff --git a/glom/libglom/document/document.cc b/glom/libglom/document/document.cc
index 0baba35..686b6f9 100644
--- a/glom/libglom/document/document.cc
+++ b/glom/libglom/document/document.cc
@@ -2377,12 +2377,6 @@ bool Document::load_after(int& failure_code)
 	  }
         }
 
-        if(mode == HOSTING_MODE_POSTGRES_SELF) //TODO: Define these enums always and show a dialog saying that the feature is not enabled.
-        {
-          std::cerr << "Document::load_after(): Loading failed because the document needs to be self-hosted, but self-hosting is not supported in client only mode" << std::endl;
-          return false; //TODO: Provide more information so the application (or Bakery) can say exactly why loading failed.
-        }
-
         m_hosting_mode = mode;
       }
 



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