Skip to content

Commit

Permalink
refactor: cleanup unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Jan 11, 2023
1 parent 8e2f7d0 commit d395913
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main/java/de/dentrassi/rpm/builder/RpmMojo.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2016, 2018, 2022 IBH SYSTEMS GmbH and others.
* Copyright (c) 2016, 2023 IBH SYSTEMS GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -98,11 +98,6 @@ public class RpmMojo extends AbstractMojo {
@Component
MavenProjectHelper projectHelper;

/**
* Keeps the version information after the initial calculation.
*/
private RpmVersion rpmVersion;

/**
* The version string to be processed in case of a release build
*
Expand Down Expand Up @@ -1198,10 +1193,6 @@ private String makePackageName() {
}

private RpmVersion makeVersion() {
if (rpmVersion != null) {
return rpmVersion;
}

if (!this.forceRelease && isSnapshotVersion()) {
if (this.snapshotVersion != null && !this.snapshotVersion.isEmpty()) {
this.logger.info("Building with SNAPSHOT version from <snapshotVersion> parameter: %s", this.snapshotVersion);
Expand Down

0 comments on commit d395913

Please sign in to comment.