Skip to content

Commit 870d58b

Browse files
committed
Remove algorithms from RefactoringExecutionContext.
1 parent 65fb38c commit 870d58b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

core/src/main/java/org/jetbrains/research/groups/ml_methods/algorithm/RefactoringExecutionContext.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@
3636
public class RefactoringExecutionContext {
3737
private static final Logger LOGGER = Logging.getLogger(RefactoringExecutionContext.class);
3838

39-
private static final List<Algorithm> ALGORITHMS = Arrays.asList(
40-
new ARI(),
41-
new CCDA(),
42-
new HAC()
43-
);
44-
4539
@NotNull
4640
private final MetricsRunImpl metricsRun = new MetricsRunImpl();
4741
private final Project project;
@@ -62,7 +56,7 @@ public class RefactoringExecutionContext {
6256
public RefactoringExecutionContext(@NotNull Project project, @NotNull AnalysisScope scope,
6357
@NotNull MetricsProfile profile,
6458
@Nullable Consumer<RefactoringExecutionContext> continuation) {
65-
this(project, scope, profile, Arrays.asList(getAvailableAlgorithms()), true, continuation);
59+
this(project, scope, profile, AlgorithmsRepository.getAvailableAlgorithms(), true, continuation);
6660
}
6761

6862
/**
@@ -199,8 +193,4 @@ public AnalysisScope getScope() {
199193
public MetricsProfile getProfile() {
200194
return profile;
201195
}
202-
203-
public static Algorithm[] getAvailableAlgorithms() {
204-
return ALGORITHMS.toArray(new Algorithm[ALGORITHMS.size()]);
205-
}
206196
}

0 commit comments

Comments
 (0)