changeset 635:87f05cec1632

Removed useless methods after having refactored the caching mechanism. gnv-artifacts/trunk@717 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 01 Mar 2010 13:39:00 +0000
parents 58c32df1a44d
children 22cc12b1622c
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java
diffstat 2 files changed, 6 insertions(+), 41 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Fri Feb 26 13:53:05 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Mon Mar 01 13:39:00 2010 +0000
@@ -1,3 +1,9 @@
+2010-03-01  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	* src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java: Removed
+	  methods which aren't used anymore (used before changing the caching
+	  mechanism).
+
 2010-02-26  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	* doc/conf/products/timeseries/conf_timeseriespoint.xml: Changed the
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java	Fri Feb 26 13:53:05 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java	Mon Mar 01 13:39:00 2010 +0000
@@ -212,8 +212,6 @@
                 Artifact select = fac.createArtifact(identifier, context, null);
                 context.putContextValue(ProxyArtifact.REPLACE_PROXY, select);
 
-                resetDescribeData(current, identifier, INITIAL_STATE);
-
                 result = createReport(
                     result, "result", "success", "Advance success"
                 );
@@ -281,45 +279,6 @@
         }
     }
 
-    public void resetDescribeData(State state, String uuid, String target) {
-        CacheFactory factory = CacheFactory.getInstance();
-        
-        if (factory.isInitialized()) {
-            Cache  cache = factory.getCache();
-            String key   = uuid + StateBase.DESCRIBEDATAKEY;
-
-            net.sf.ehcache.Element value = cache.get(key);
-            if (value == null)
-                return;
-
-            List data = (List) value.getObjectValue();
-            while(!target.equals(state.getID())) {
-                data.remove(data.size()-1);
-                state = state.getParent();
-
-                if (state == null)
-                    break;
-            }
-
-            cache.put(new net.sf.ehcache.Element(key, data));
-        }
-    }
-
-
-    protected void resetFutureStates(State current, String name) {
-        if (current == null) {
-            return;
-        }
-
-        if (current.getID().equals(name)) {
-            return;
-        }
-        else {
-            current.reset(identifier);
-            resetFutureStates(current.getParent(), name);
-        }
-    }
-
 
     private boolean isStateCurrentlyReachable(String stateid){
         Iterator<Transition> it = this.transitions.iterator();

http://dive4elements.wald.intevation.org