# HG changeset patch # User Ingo Weinzierl # Date 1267450740 0 # Node ID 87f05cec16322d40cd836dfad3c64210fc64ec51 # Parent 58c32df1a44deed5f99e0ed4de5b8208c9eb1d14 Removed useless methods after having refactored the caching mechanism. gnv-artifacts/trunk@717 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 58c32df1a44d -r 87f05cec1632 gnv-artifacts/ChangeLog --- 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 + + * 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 * doc/conf/products/timeseries/conf_timeseriespoint.xml: Changed the diff -r 58c32df1a44d -r 87f05cec1632 gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java --- 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 it = this.transitions.iterator();