private static boolean removeExplicitThisParameter(List<? extends Variable> params,
			String callingConventionName) {
		if (CompilerSpec.CALLING_CONVENTION_thiscall.equals(callingConventionName)) {
			int thisIndex = findExplicitThisParameter(params);
			if (thisIndex >= 0) {
				params.remove(thisIndex); // remove explicit 'this' parameter
				return true;
			}
		}
		return false;
	}
Remove 'this' parameter if using __thiscall and first non-auto parameter is
a pointer and named 'this'.
@param params list of parameters to search and affect
@param callingConventionName current function calling convention
@return true if 'this' parameter removed (applies to __thiscall callingConventionName only), else false
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/function/FunctionDB.java