Print

Print


Author: [log in to unmask]
Date: Fri Jan 16 16:40:37 2015
New Revision: 1952

Log:
Remove unused method and minor comment changes.

Modified:
    java/trunk/conditions/src/main/java/org/hps/conditions/database/DatabaseConditionsManager.java

Modified: java/trunk/conditions/src/main/java/org/hps/conditions/database/DatabaseConditionsManager.java
 =============================================================================
--- java/trunk/conditions/src/main/java/org/hps/conditions/database/DatabaseConditionsManager.java	(original)
+++ java/trunk/conditions/src/main/java/org/hps/conditions/database/DatabaseConditionsManager.java	Fri Jan 16 16:40:37 2015
@@ -160,17 +160,9 @@
         return (DatabaseConditionsManager) manager;
     }
     
-    public boolean checkConnection() {
-        if (!isConnected()) {
-            openConnection();
-            return true;
-        } else {
-            return false;
-        }
-    }
-
     /**
      * Open the database connection.
+     * @return True if a connection was opened; false if using an existing connection.
      */
     public boolean openConnection() {
         boolean openedConnection = false;
@@ -223,7 +215,7 @@
     /**
      * Close the database connection but only if there was a connection opened
      * based on the flag.  Otherwise, it should be left open.
-     * @param connectionOpened Whether or not to close the connection.
+     * @param connectionOpened True to close the connection; false to leave it open.
      */
     public void closeConnection(boolean connectionOpened) {
         if (connectionOpened) {