mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
remove unnecessary method mark plugin as core plugin
This commit is contained in:
@@ -143,9 +143,6 @@ public final class InstalledPlugin implements Plugin
|
||||
this.uninstallable = uninstallable;
|
||||
}
|
||||
|
||||
public void markAsCore() {
|
||||
this.core = true;
|
||||
}
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** plugin class loader */
|
||||
@@ -160,7 +157,7 @@ public final class InstalledPlugin implements Plugin
|
||||
/** plugin web resource loader */
|
||||
private final WebResourceLoader webResourceLoader;
|
||||
|
||||
private boolean core;
|
||||
private final boolean core;
|
||||
|
||||
private boolean markedForUninstall = false;
|
||||
private boolean uninstallable = false;
|
||||
|
||||
@@ -215,11 +215,6 @@ public class DefaultPluginManager implements PluginManager {
|
||||
&& dependencyTracker.mayUninstall(p.getDescriptor().getInformation().getName());
|
||||
}
|
||||
|
||||
private void markAsCore(InstalledPlugin plugin) {
|
||||
createMarkerFile(plugin, PluginConstants.FILE_CORE);
|
||||
plugin.markAsCore();
|
||||
}
|
||||
|
||||
private void createMarkerFile(InstalledPlugin plugin, String markerFile) {
|
||||
try {
|
||||
Files.createFile(plugin.getDirectory().resolve(markerFile));
|
||||
|
||||
Reference in New Issue
Block a user