mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
unused method
This commit is contained in:
@@ -21,7 +21,6 @@ package com.intellij.concurrency;
|
||||
|
||||
import com.intellij.openapi.components.ServiceManager;
|
||||
import com.intellij.util.ConcurrencyUtil;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
||||
@@ -33,8 +32,6 @@ public abstract class JobScheduler {
|
||||
return ServiceManager.getService(JobScheduler.class);
|
||||
}
|
||||
|
||||
public abstract <T> Job<T> createJob(@NonNls String title, int priority);
|
||||
|
||||
public static ScheduledExecutorService getScheduler() {
|
||||
return ourScheduledExecutorService;
|
||||
}
|
||||
|
||||
@@ -50,10 +50,6 @@ public class JobSchedulerImpl extends JobScheduler implements Disposable {
|
||||
return ourQueue.size();
|
||||
}
|
||||
|
||||
public <T> Job<T> createJob(String title, int priority) {
|
||||
return new JobImpl<T>(priority, false);
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
((ThreadPoolExecutor)getScheduler()).getQueue().clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user