Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixATExport.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 | ee701de9c875 |
comparison
equal
deleted
inserted
replaced
6100:de92e0cdebdc | 6101:a0078e5e3b39 |
---|---|
60 } | 60 } |
61 else { | 61 else { |
62 logger.debug("No CalculationResult found for AT export."); | 62 logger.debug("No CalculationResult found for AT export."); |
63 return; | 63 return; |
64 } | 64 } |
65 FixAccess access = new FixAccess((D4EArtifact)this.master, context); | 65 FixAccess access = new FixAccess((D4EArtifact)this.master); |
66 String f = access.getFunction(); | 66 String f = access.getFunction(); |
67 if (f == null || f.length() == 0) { | 67 if (f == null || f.length() == 0) { |
68 logger.debug("No function found for AT export."); | 68 logger.debug("No function found for AT export."); |
69 return; | 69 return; |
70 } | 70 } |
78 return; | 78 return; |
79 } | 79 } |
80 | 80 |
81 Writer writer = new OutputStreamWriter(out, DEFAULT_CSV_CHARSET); | 81 Writer writer = new OutputStreamWriter(out, DEFAULT_CSV_CHARSET); |
82 | 82 |
83 FixAccess access = new FixAccess((D4EArtifact)this.master, context); | 83 FixAccess access = new FixAccess((D4EArtifact)this.master); |
84 FixATWriter atWriter = new FixATWriter(this.function, this.parameters); | 84 FixATWriter atWriter = new FixATWriter(this.function, this.parameters); |
85 NodeList nodes = request.getElementsByTagName("km"); | 85 NodeList nodes = request.getElementsByTagName("km"); |
86 String km = nodes.item(0).getTextContent(); | 86 String km = nodes.item(0).getTextContent(); |
87 double dkm = Double.parseDouble(km); | 87 double dkm = Double.parseDouble(km); |
88 String river = access.getRiver(); | 88 String river = access.getRiver(); |