diff gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java @ 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 61f688a69a55
children 22cc12b1622c
line wrap: on
line diff
--- 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