vgritsenko 2004/01/08 19:42:57
Modified: java/src/org/apache/xindice/core Database.java
Log:
Remove unused methods
Revision Changes Path
1.35 +4 -42
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.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- Database.java 24 Dec 2003 15:23:08 -0000 1.34
+++ Database.java 9 Jan 2004 03:42:56 -0000 1.35
@@ -175,13 +175,12 @@
private MetaSystemCollection metaSystemCollection = null;
private boolean sysInit = false;
private SystemCollection systemCollection = null;
- /** key = canonical name, value = timerecord */
- // private Map timestamps = new HashMap();
+
/**
* @see org.apache.xindice.core.DBObject#close()
*/
- public boolean close() throws DBException {
+ public boolean close() {
flushConfig();
synchronized (databases) {
@@ -251,49 +250,12 @@
}
/**
- * 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.
* @return boolean
*/
public boolean isMetaEnabled() {
return metaEnabled;
}
-
- /**
- * 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) {
- rec = new TimeRecord(created, modified);
- timestamps.put(path, rec);
- } else {
- if (created > 0) {
- rec.setCreatedTime(created);
- }
- if (modified > 0) {
- rec.setModifiedTime(modified);
- }
- }
- }
- */
-
- /**
- * 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)