Skip to content

Commit

Permalink
Fix visibility/remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nkorabli committed Apr 7, 2021
1 parent 335181d commit 1cbedb6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/jenkinsci/plugins/vSphereCloud.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public List<? extends vSphereCloudSlaveTemplate> getTemplates() {
}

@Restricted(NoExternalUse.class)
public vSphereCloudSlaveTemplate getTemplateForVM(final String vmName) {
vSphereCloudSlaveTemplate getTemplateForVM(final String vmName) {
if (this.templates == null || vmName == null)
return null;
for (final vSphereCloudSlaveTemplate t : this.templates) {
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/org/jenkinsci/plugins/vSphereCloudSlave.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,6 @@ public Integer getLimitedTestRunCount() {
return LimitedTestRunCount;
}

@Restricted(NoExternalUse.class)
public vSphereCloudSlaveTemplate getTemplate() {
vSphereCloud cloud = findOurVsInstance();
return cloud.getTemplateForVM(getVmName());
}

public boolean isLaunchSupportForced() {
return ((vSphereCloudLauncher) getLauncher()).getOverrideLaunchSupported() == Boolean.TRUE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public String getVmInformationError() {
* Get all vsphere computers.
*/
@Restricted(NoExternalUse.class)
protected static @Nonnull List<vSphereCloudSlaveComputer> getAll() {
static @Nonnull List<vSphereCloudSlaveComputer> getAll() {
ArrayList<vSphereCloudSlaveComputer> out = new ArrayList<>();
for (final Computer c : Jenkins.get().getComputers()) {
if (!(c instanceof vSphereCloudSlaveComputer)) continue;
Expand Down

0 comments on commit 1cbedb6

Please sign in to comment.