Skip to content

Commit 4bfe620

Browse files
authored
Remove function to get plugin loader directory (#8344)
This was added in #5882 for tests and older versions of IJ that are not relevant now.
1 parent 4c7dcef commit 4bfe620

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

src/io/flutter/jxbrowser/JxBrowserManager.java

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -52,31 +52,9 @@
5252
public class JxBrowserManager {
5353
private static JxBrowserManager manager;
5454

55-
private static String getPluginLoaderDir() {
56-
try {
57-
final ApplicationInfo info = ApplicationInfo.getInstance();
58-
assert info != null;
59-
if (Objects.equals(info.getMajorVersion(), "2021")) {
60-
if (Objects.equals(info.getMinorVersion(), "3")) {
61-
return "flutter-idea";
62-
}
63-
else {
64-
return "flutter-intellij";
65-
}
66-
}
67-
else if (Objects.equals(info.getMajorVersion(), "2020")) {
68-
return "flutter-intellij";
69-
}
70-
}
71-
catch (NullPointerException ex) {
72-
// ignored; unit tests
73-
}
74-
return "flutter-idea";
75-
}
76-
7755
@NotNull
7856
protected static final String DOWNLOAD_PATH =
79-
PathManager.getPluginsPath() + File.separatorChar + getPluginLoaderDir() + File.separatorChar + "jxbrowser";
57+
PathManager.getPluginsPath() + File.separatorChar + "flutter-intellij" + File.separatorChar + "jxbrowser";
8058
@NotNull
8159
private static final AtomicReference<JxBrowserStatus> status = new AtomicReference<>(JxBrowserStatus.NOT_INSTALLED);
8260
@NotNull

0 commit comments

Comments
 (0)