Skip to content

Commit

Permalink
Remove unnecessary changes to ItemInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Dec 28, 2024
1 parent 995f3aa commit d07e5af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 0 additions & 8 deletions src/main/java/jenkins/advancedqueue/sorter/ItemInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ public class ItemInfo
this.itemStatus = ItemStatus.WAITING;
}

/** Public only for use in tests. */
public ItemInfo(Item item, int priority) {
this.itemId = item.getId();
this.inQueueSince = item.getInQueueSince();
this.jobName = item.task.getName();
this.itemStatus = ItemStatus.WAITING;
}

public PriorityConfigurationCallback setPrioritySelection(int priority, int jobGroupId, PriorityStrategy reason) {
this.priority = priority;
this.jobGroupId = jobGroupId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package jenkins.advancedqueue.jobinclusion.strategy;

import hudson.model.FreeStyleProject;
import hudson.model.Queue;
import hudson.model.Run;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

import hudson.model.FreeStyleProject;
import hudson.model.Queue;
import hudson.model.Run;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
Expand Down

0 comments on commit d07e5af

Please sign in to comment.