Skip to content

Commit

Permalink
Merge branch 'main' into pfeifer/duplicateSortLogLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframPfeifer authored Aug 13, 2024
2 parents d33375e + f670445 commit 48cb45e
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import de.uka.ilkd.key.control.UserInterfaceControl;
import de.uka.ilkd.key.control.instantiation_model.TacletInstantiationModel;
import de.uka.ilkd.key.core.KeYMediator;
import de.uka.ilkd.key.gui.actions.ExitMainAction;
import de.uka.ilkd.key.gui.mergerule.MergeRuleCompletion;
import de.uka.ilkd.key.gui.notification.events.GeneralFailureEvent;
import de.uka.ilkd.key.gui.notification.events.NotificationEvent;
Expand Down Expand Up @@ -55,7 +54,6 @@
import org.antlr.v4.runtime.misc.ParseCancellationException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.misc.Signal;

/**
* Implementation of {@link UserInterfaceControl} which controls the {@link MainWindow} with the
Expand All @@ -79,19 +77,6 @@ public WindowUserInterfaceControl(MainWindow mainWindow) {
completions.add(new BlockContractInternalCompletion(mainWindow));
completions.add(new BlockContractExternalCompletion(mainWindow));
completions.add(MergeRuleCompletion.INSTANCE);
try {
Signal.handle(new Signal("INT"), sig -> {
if (getMediator().isInAutoMode()) {
LOGGER.warn("Caught SIGINT, stopping automode...");
getMediator().getUI().getProofControl().stopAutoMode();
} else {
LOGGER.warn("Caught SIGINT, exiting...");
new ExitMainAction(mainWindow).exitMainWithoutInteraction();
}
});
} catch (Exception e) {
// the above is optional functionality and may not work on every OS
}
}

@Override
Expand Down

0 comments on commit 48cb45e

Please sign in to comment.