private void clearInstructionsAndOrData(AddressSetView clearView)
			throws CancelledException {

		boolean clearInstructions = options.shouldClear(INSTRUCTIONS);
		boolean clearData = options.shouldClear(DATA);

		monitor.initialize(clearView.getNumAddresses());
		monitor.setMessage(getMessage(clearInstructions, clearData));

		for (AddressRange range : clearView.getAddressRanges()) {
			clearCode(range, clearInstructions, clearData);
		}
	}
Clears over the given range, <b>clearing only code</b>.  To clear other items,
use {@link #ClearCmd(AddressSetView,ClearOptions)}.

@param view the addresses over which to clear
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/clear/ClearCmd.java