Ghidra is a software reverse engineering (SRE) framework
removed unused code
ghidravore79a12c3fc160
diff --git a/Ghidra/Framework/Docking/src/main/java/docking/action/builder/AbstractActionBuilder.java b/Ghidra/Framework/Docking/src/main/java/docking/action/builder/AbstractActionBuilder.javaindex d67cf40c41..5664017b34 100644--- a/Ghidra/Framework/Docking/src/main/java/docking/action/builder/AbstractActionBuilder.java+++ b/Ghidra/Framework/Docking/src/main/java/docking/action/builder/AbstractActionBuilder.java@@ -506,7 +506,6 @@ public abstract class AbstractActionBuilder<T extends DockingActionIf, C extends*/public B onAction(Consumer<C> action) {actionCallback = action;-// actionCallback = adaptActionConsumer(action);return self();}@@ -624,7 +623,9 @@ public abstract class AbstractActionBuilder<T extends DockingActionIf, C extendsactionContextClass = newActionContextClass;- // reset the predicates when changing the action context type+ // reset the predicates when changing the action context type - this will guarantee+ // that the action will automatically be invalid when the context type does not match+ // the type specified by this callvalidContextWhen(TRUE_PREDICATE);enabledWhen(TRUE_PREDICATE);popupWhen(TRUE_PREDICATE);@@ -685,17 +686,6 @@ public abstract class AbstractActionBuilder<T extends DockingActionIf, C extendsreturn predicateAdapter;}- @SuppressWarnings("unchecked")- private Consumer<ActionContext> adaptActionConsumer(Consumer<C> consumer) {- if (actionContextClass == ActionContext.class) {- return (Consumer<ActionContext>) consumer;- }- Consumer<ActionContext> consumerAdapter = (ac) -> {- consumer.accept((C) ac);- };- return consumerAdapter;- }-protected boolean isPopupAction() {return popupPath != null;}