2023-11-19 02:12:44 +03:00
|
|
|
package Visual_DVM_2021.Passes.All;
|
2023-09-17 22:13:42 +03:00
|
|
|
import Common.Current;
|
|
|
|
|
import ProjectData.Project.db_project_info;
|
2023-11-19 02:12:44 +03:00
|
|
|
import Visual_DVM_2021.Passes.PassCode_2021;
|
|
|
|
|
import Visual_DVM_2021.Passes.Pass_2021;
|
2023-09-17 22:13:42 +03:00
|
|
|
|
|
|
|
|
import java.util.Vector;
|
|
|
|
|
public class DeleteLonelyM extends Pass_2021<db_project_info> {
|
|
|
|
|
@Override
|
|
|
|
|
protected boolean canStart(Object... args) throws Exception {
|
|
|
|
|
if (Current.Check(Log, Current.Root)) {
|
|
|
|
|
target = Current.getRoot();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void body() throws Exception {
|
|
|
|
|
Vector<db_project_info> targets = target.getLonelyM();
|
|
|
|
|
for (db_project_info m : targets) {
|
|
|
|
|
passes.get(PassCode_2021.DeleteVersion).Do(m);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|