vgritsenko 2003/12/24 07:23:08
Modified: java/src/org/apache/xindice/core Database.java
Log:
Comment out unused code
Revision Changes Path
1.34 +8 -8
xml-xindice/java/src/org/apache/xindice/core/Database.java
Index: Database.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/src/org/apache/xindice/core/Database.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- Database.java 23 Dec 2003 12:20:07 -0000 1.33
+++ Database.java 24 Dec 2003 15:23:08 -0000 1.34
@@ -61,7 +61,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.apache.xindice.core.meta.TimeRecord;
+// import org.apache.xindice.core.meta.TimeRecord;
import org.apache.xindice.core.query.QueryEngine;
import org.apache.xindice.server.Xindice;
import org.apache.xindice.util.Configuration;
@@ -176,7 +176,7 @@
private boolean sysInit = false;
private SystemCollection systemCollection = null;
/** key = canonical name, value = timerecord */
- private Map timestamps = new HashMap();
+ // private Map timestamps = new HashMap();
/**
* @see org.apache.xindice.core.DBObject#close()
@@ -254,11 +254,11 @@
* TODO: Not used. Remove?
* @param path
* @return
- */
public synchronized TimeRecord getTime(String path) {
TimeRecord rec = (TimeRecord) timestamps.get(path);
return rec;
}
+ */
/**
* Return whether or not metadata is enabled on this database.
@@ -271,7 +271,6 @@
/**
* TODO: Not used. Remove?
* methods for recording the times when meta data is enabled.
- */
public synchronized void recordTime(String path, long created, long
modified) {
TimeRecord rec = (TimeRecord) timestamps.get(path);
if (null == rec) {
@@ -286,14 +285,15 @@
}
}
}
+ */
/**
* TODO: Not used. Remove?
* @param path
- */
public synchronized void removeTime(String path) {
timestamps.remove(path);
}
+ */
/**
* @see
org.apache.xindice.util.Configurable#setConfig(org.apache.xindice.util.Configuration)
@@ -314,7 +314,7 @@
log.warn("The specified database root directory '" + dbroot
+ "' is relative " +
"and there was no " + Xindice.PROP_XINDICE_DB_HOME
+ " property set, " +
"so Xindice was unable to determine a database
location. " +
- "Database will be created relative to the current
directory.");
+ "Database will be created relative to the current
working directory.");
home = ".";
}