Ghidra is a software reverse engineering (SRE) framework
GP-5779: Clean out some ColorModel garbage.
Dan93d5e3db0deb
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/action/DebuggerTrackLocationTrait.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/action/DebuggerTrackLocationTrait.javaindex f31c3b4a1b..261d4c1e00 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/action/DebuggerTrackLocationTrait.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/action/DebuggerTrackLocationTrait.java@@ -25,11 +25,11 @@ import docking.ComponentProvider;import docking.menu.ActionState;import docking.menu.MultiStateDockingAction;import docking.widgets.EventTrigger;-import docking.widgets.fieldpanel.support.BackgroundColorModel;import docking.widgets.fieldpanel.support.FieldSelection;import ghidra.app.plugin.core.debug.gui.DebuggerResources;-import ghidra.app.plugin.core.debug.gui.colors.*;import ghidra.app.plugin.core.debug.gui.colors.MultiSelectionBlendedLayoutBackgroundColorManager.ColoredFieldSelection;+import ghidra.app.plugin.core.debug.gui.colors.SelectionGenerator;+import ghidra.app.plugin.core.debug.gui.colors.SelectionTranslator;import ghidra.app.plugin.core.debug.gui.listing.DebuggerTrackedRegisterListingBackgroundColorModel;import ghidra.app.util.viewer.listingpanel.ListingBackgroundColorModel;import ghidra.app.util.viewer.listingpanel.ListingPanel;@@ -87,14 +87,6 @@ public class DebuggerTrackLocationTrait {}}- // TODO: This may already be deprecated....- protected class ColorModel extends DebuggerTrackedRegisterBackgroundColorModel {- @Override- protected ProgramLocation getTrackedLocation() {- return trackedLocation;- }- }-protected class ListingColorModelextends DebuggerTrackedRegisterListingBackgroundColorModel {public ListingColorModel(ListingPanel listingPanel) {@@ -136,7 +128,6 @@ public class DebuggerTrackLocationTrait {protected final ForTrackingListener listener = new ForTrackingListener();- protected final ColorModel colorModel;protected final TrackSelectionGenerator selectionGenerator;protected DebuggerCoordinates current = DebuggerCoordinates.NOWHERE;@@ -147,14 +138,9 @@ public class DebuggerTrackLocationTrait {this.plugin = plugin;this.provider = provider;- this.colorModel = new ColorModel();this.selectionGenerator = new TrackSelectionGenerator();}- public BackgroundColorModel getBackgroundColorModel() {- return colorModel;- }-public ListingBackgroundColorModel createListingBackgroundColorModel(ListingPanel listingPanel) {return new ListingColorModel(listingPanel);