Skip to content

Commit

Permalink
removing unused import and method
Browse files Browse the repository at this point in the history
  • Loading branch information
FabiKo117 committed Sep 17, 2020
1 parent 1ad4075 commit 03a1755
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public static void extract(RequestResource requestResource, ElementsGeometry ele
keysInt[i] = tt.getOSHDBTagKeyOf(keys[i]).toInt();
}
}
MapReducer<Feature> contributionPreResult = null;
ExecutionUtils exeUtils = new ExecutionUtils(processingData);
inputProcessor.processPropertiesParam();
inputProcessor.processIsUnclippedParam();
Expand All @@ -116,7 +115,7 @@ public static void extract(RequestResource requestResource, ElementsGeometry ele
String endTimestamp = ISODateTimeParser.parseISODateTime(requestParameters.getTime()[1])
.format(DateTimeFormatter.ISO_DATE_TIME);
MapReducer<List<OSMContribution>> mapRedContributions = mapRedContribution.groupByEntity();
contributionPreResult = mapRedContributions.flatMap(contributions -> {
MapReducer<Feature> contributionPreResult = mapRedContributions.flatMap(contributions -> {
List<Feature> output = new LinkedList<>();
Map<String, Object> properties;
Geometry currentGeom = null;
Expand Down Expand Up @@ -185,8 +184,6 @@ public static void extract(RequestResource requestResource, ElementsGeometry ele
validTo = TimestampFormatter.getInstance().isoDateTime(contribution.getTimestamp());
if (!skipNext) {
properties = new TreeMap<>();
// deactivating the adding of the contrib type as it could deliver false results
// properties = exeUtils.addContribType(contribution, properties, includeOSMMetadata);
if (!isContributionsEndpoint) {
properties.put("@validFrom", validFrom);
properties.put("@validTo", validTo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -707,15 +707,6 @@ public Response createRatioGroupByBoundaryResponse(Object[] boundaryIds, String[
groupByResultSet);
}

/** Adds the respective contribution type(s) to the properties if includeMetadata=true. */
public Map<String, Object> addContribType(OSMContribution contribution,
Map<String, Object> properties, boolean includeMetadata) {
if (includeMetadata) {
properties.put("@contributionTypes", contribution.getContributionTypes());
}
return properties;
}

/**
* Extracts and returns a geometry out of the given contribution. The boolean values specify if it
* should be clipped/unclipped and if the geometry before/after a contribution should be taken.
Expand Down

0 comments on commit 03a1755

Please sign in to comment.