Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-20008] Using DirectlyModifiableTopLevelItemGroup.remove.
  • Loading branch information
jglick committed Dec 19, 2013
1 parent c34bb3f commit a7966ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/com/cloudbees/hudson/plugins/folder/Folder.java
Expand Up @@ -862,6 +862,10 @@ public HttpResponse doLastBuild(StaplerRequest req) {
return item;
}

@Override public void remove(TopLevelItem item) throws IOException, IllegalArgumentException {
items.remove(item.getName());
}

@Extension
public static class DescriptorImpl extends TopLevelItemDescriptor {
@Override
Expand Down
Expand Up @@ -124,7 +124,7 @@ public static <G extends ItemGroup<I>, I extends TopLevelItem> ItemGroupModifier
}

@Override public void remove(DirectlyModifiableTopLevelItemGroup target, TopLevelItem item) throws IOException {
target.onDeleted(item);
target.remove(item);
}

}
Expand Down

0 comments on commit a7966ad

Please sign in to comment.