Mercurial > dive4elements > river
changeset 2102:16e74c5e636f
Cosmetics.
flys-artifacts/trunk@3659 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 12 Jan 2012 12:20:56 +0000 |
parents | d54518bac974 |
children | b9f7ec9bda18 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java |
diffstat | 2 files changed, 7 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Wed Jan 11 14:36:19 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu Jan 12 12:20:56 2012 +0000 @@ -1,3 +1,10 @@ +2011-01-12 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + Cosmetics, cleanups. + + * src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java: + (getCrossSections, getCrossSectionNames): Removed. + 2011-01-11 Felix Wolfsteller <felix.wolfsteller@intevation.de> flys/issue439 (Streckenfavoriten lassen sich nicht über den Datenkorb
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Wed Jan 11 14:36:19 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Thu Jan 12 12:20:56 2012 +0000 @@ -657,21 +657,6 @@ /** - * Get List of all cross-sections for current river. - * - * @return List of CrossSections for current river, null in case of error. - */ - protected List<CrossSection> getCrossSections() { - River river = FLYSUtils.getRiver(this); - if (river == null) { - logger.warn("No river in WINFO found"); - return null; - } - return CrossSectionFactory.getCrossSections(river); - } - - - /** * Get points of line describing the surface of water at cross section. * * @return an array holding coordinates of points of surface of water ( @@ -723,22 +708,6 @@ /** - * Get name of cross sections. - * @return list of names of cross-sections. - */ - public List<String> getCrossSectionNames() { - logger.debug("getCrossSectionNames"); - List<String> names = new ArrayList<String>(); - - for (CrossSection section: getCrossSections()) { - names.add(section.getDescription()); - } - - return names; - } - - - /** * Returns the Qs for a number of Ws. This method makes use of * DischargeTables.getQForW(). *