Skip to content

Commit

Permalink
Merge pull request eclipse-tractusx#789 from dsmf/fix/757-remove-obso…
Browse files Browse the repository at this point in the history
…lete-method

chore(cleanup): [eclipse-tractusx#757] remove unused method
  • Loading branch information
ds-jhartmann authored Jul 11, 2024
2 parents bb4b3a8 + 7750773 commit d30dca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ _**For better traceability add the corresponding GitHub issue number in each cha

### Added


### Fixed

- Access and Usage Policy Validation flow correction. #757

### Changed

- Replaced technical error message when trying to delete the configured default policy with a user-friendly message.
- Replaced technical error message when trying to delete the configured default policy with a user-friendly message.


## [5.2.0] - 2024-07-03

### Fixed

- Access and Usage Policy Validation flow correction. #757
- Fixed ESS Investigation job processing not starting. #579
- Policy store API returns 'rightOperand' without 'odrl:' prefix now (see traceability-foss/issues/970).
- Fixed trivy workflow to fail only on CRITICAL, HIGH (according to https://github.com/eclipse-tractusx/eclipse-tractusx.github.io/pull/949/files).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import java.time.OffsetDateTime;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
Expand Down Expand Up @@ -290,14 +289,6 @@ private static Stream<Policy> sortByPolicyId(final List<Policy> policies) {
return result.stream();
}

private List<AcceptedPolicy> getAllPolicies() {
return getAllStoredPolicies().values()
.stream()
.flatMap(Collection::stream)
.map(this::toAcceptedPolicy)
.toList();
}

private AcceptedPolicy toAcceptedPolicy(final Policy policy) {
return new AcceptedPolicy(policy, policy.getValidUntil());
}
Expand Down

0 comments on commit d30dca7

Please sign in to comment.