Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java @ 6101:a0078e5e3b39
Removed unused context from RangeAccess and subclasses leading to some dead code removal.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 25 May 2013 19:32:58 +0200 |
parents | a0dd303f4a08 |
children | 5afb1cda5885 |
comparison
equal
deleted
inserted
replaced
6100:de92e0cdebdc | 6101:a0078e5e3b39 |
---|---|
238 /** Get important data from the 'calling' artifact. */ | 238 /** Get important data from the 'calling' artifact. */ |
239 @Override | 239 @Override |
240 protected void initialize(Artifact artifact, Object context, CallMeta meta) { | 240 protected void initialize(Artifact artifact, Object context, CallMeta meta) { |
241 logger.debug("MainValuesArtifact.initialize"); | 241 logger.debug("MainValuesArtifact.initialize"); |
242 D4EArtifact winfo = (D4EArtifact) artifact; | 242 D4EArtifact winfo = (D4EArtifact) artifact; |
243 RangeAccess rangeAccess = new RangeAccess(winfo, null); | 243 RangeAccess rangeAccess = new RangeAccess(winfo); |
244 double [] locations = rangeAccess.getKmRange(); | 244 double [] locations = rangeAccess.getKmRange(); |
245 | 245 |
246 if (locations != null) { | 246 if (locations != null) { |
247 double location = locations[0]; | 247 double location = locations[0]; |
248 addData("ld_locations", new DefaultStateData("ld_locations", null, null, | 248 addData("ld_locations", new DefaultStateData("ld_locations", null, null, |