Skip to content

Commit

Permalink
refactor(ELY-2595): remove unused parameter
Browse files Browse the repository at this point in the history
This removes unused parameter identityToWrite from requiredVersion method signature.

This closes ticket https://issues.redhat.com/browse/ELY-2595
  • Loading branch information
abhishek-nigam committed Oct 6, 2023
1 parent 91e3231 commit 5f8dd0f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ private Void replaceIdentityPrivileged(final LoadedIdentity newIdentity) throws
}
}

private Version requiredVersion(final LoadedIdentity identityToWrite) {
private Version requiredVersion() {
// As new functionality is added we will identify if we need to use a later version
// if new functionality is used then use the required schema version otherwise fallback
// to an older version.
Expand All @@ -1018,7 +1018,7 @@ private void writeIdentity(final XMLStreamWriter streamWriter, final LoadedIdent
streamWriter.writeStartDocument();
streamWriter.writeCharacters("\n");
streamWriter.writeStartElement("identity");
streamWriter.writeDefaultNamespace(requiredVersion(newIdentity).getNamespace());
streamWriter.writeDefaultNamespace(requiredVersion().getNamespace());

if (integrityEnabled) {
streamWriter.writeCharacters("\n ");
Expand Down

0 comments on commit 5f8dd0f

Please sign in to comment.