private static void clearObsoleteDynamicLocalsFromDatabase(HighFunction highFunction) {
		Function function = highFunction.getFunction();
		Variable[] variables = function.getLocalVariables();
		for (Variable var : variables) {
			if (var.isUniqueVariable() && !isValidUniqueVariable(highFunction, var)) {
				function.removeVariable(var);
			}
		}
	}
Create a local DB variable with a default name. Storage and data-type for the variable
are provided explicitly.
@param function is the function owning the new variable
@param dt is the given data-type
@param storage is the given storage
@param pcAddr is point where the variable is instantiated or null
@param source is the source type of the new variable
@return the new local variable
@throws InvalidInputException is a valid variable can't be created
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/HighFunctionDBUtil.java