Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/CrossSectionArtifact.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 | af13ceeba52a |
children | f2722602936c |
comparison
equal
deleted
inserted
replaced
6100:de92e0cdebdc | 6101:a0078e5e3b39 |
---|---|
143 boolean isNewest = CrossSectionFactory.isNewest(cs); | 143 boolean isNewest = CrossSectionFactory.isNewest(cs); |
144 String newString = (isNewest) ? "1" : "0"; | 144 String newString = (isNewest) ? "1" : "0"; |
145 addStringData(DATA_IS_NEWEST, newString); | 145 addStringData(DATA_IS_NEWEST, newString); |
146 addStringData(DATA_IS_MASTER, newString); | 146 addStringData(DATA_IS_MASTER, newString); |
147 | 147 |
148 StaticState state = (StaticState) getCurrentState(context); | |
149 | |
150 if (!fs.isEmpty()) { | 148 if (!fs.isEmpty()) { |
151 addFacets(getCurrentStateId(), fs); | 149 addFacets(getCurrentStateId(), fs); |
152 } | 150 } |
153 } | 151 } |
154 | 152 |
160 Object context, | 158 Object context, |
161 CallMeta callMeta) | 159 CallMeta callMeta) |
162 { | 160 { |
163 D4EArtifact flys = (D4EArtifact) artifact; | 161 D4EArtifact flys = (D4EArtifact) artifact; |
164 | 162 |
165 RangeAccess rangeAccess = new RangeAccess(flys, null); | 163 RangeAccess rangeAccess = new RangeAccess(flys); |
166 double[] range = rangeAccess.getKmRange(); | 164 double[] range = rangeAccess.getKmRange(); |
167 double min = 0.0f; | 165 double min = 0.0f; |
168 if (range != null && range.length > 0) { | 166 if (range != null && range.length > 0) { |
169 min = range[0]; | 167 min = range[0]; |
170 } | 168 } |