@Override
	public void clearVariable(int offset) {

		// WARNING! removing Stack parameters from the stack frame will enable custom storage

		function.manager.lock.acquire();
		try {
			checkDeleted();
			Variable var = getVariableContaining(offset);
			if (var != null) {
				if (!function.hasCustomVariableStorage()) {
					function.setCustomVariableStorage(true);
				}
				function.removeVariable(var);
			}
		}
		finally {
			function.manager.lock.release();
		}
	}
@return the number of parameters which occupy stack storage
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/function/FunctionStackFrame.java