public void removeParameters() {
		if (!canRemoveParameters()) {
			throw new AssertException("Attempted to remove parameters when not allowed.");
		}

		listener.tableRowsChanged();

		int ordinal = selectedParams.get(0).getOrdinal();
		functionData.removeParameters(selectedParams);
		selectedParams.clear();
		ParamInfo selectParam = null;
		for (ParamInfo p : functionData.getParameters()) {
			selectParam = p;
			if (ordinal == p.getOrdinal()) {
				break;
			}
		}
		if (selectParam != null) {
			setSelectedParam(selectParam);
		}
		notifyDataChanged();
	}
Get the effective function to which changes will be made.  This
will be the same as function unless it is a thunk in which case
the returned function will be the ultimate non-thunk function.
@return non-thunk function
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/editor/FunctionEditorModel.java