protected void unitRemoved(T unit) {
		cacheForContaining.notifyEntryRemoved(unit.getLifespan(), unit.getRange(), unit);
		cacheForSequence.notifyEntryRemoved(unit.getLifespan(), unit.getRange(), unit);
		space.undefinedData.invalidateCache();
		space.trace.setChanged(
			new TraceChangeRecord<>(TraceEvents.CODE_REMOVED, space, unit.getBounds(), unit, null));
	}
Notify domain object listeners that a unit was removed

@param unit the removed unit
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/listing/AbstractBaseDBTraceDefinedUnitsView.java