Skip to content

Commit

Permalink
Purge LinkedLogRotator
Browse files Browse the repository at this point in the history
It is O(n^2), and looks like it adds no real value. The normal
rotator should delete all the builds.
  • Loading branch information
orgads committed May 1, 2017
1 parent ba659e0 commit c1b213b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 94 deletions.
83 changes: 0 additions & 83 deletions src/main/java/hudson/matrix/LinkedLogRotator.java

This file was deleted.

11 changes: 0 additions & 11 deletions src/main/java/hudson/matrix/MatrixConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,17 +401,6 @@ public Publisher getPublisher(Descriptor<Publisher> descriptor) {
return getParent().getPublisher(descriptor);
}

@Override
public BuildDiscarder getBuildDiscarder() {
// TODO: LinkedLogRotator doesn't work very well in the face of pluggable BuildDiscarder but I don't know what to do
BuildDiscarder bd = getParent().getBuildDiscarder();
if (bd instanceof LogRotator) {
LogRotator lr = (LogRotator) bd;
return new LinkedLogRotator(lr.getArtifactDaysToKeep(),lr.getArtifactNumToKeep());
}
return new LinkedLogRotator();
}

@Override
public SCM getScm() {
return getParent().getScm();
Expand Down

0 comments on commit c1b213b

Please sign in to comment.