private void removeSymbol(Symbol resultSymbol, long originalID) {
		if (resultSymbol == null) {
			return;
		}
		Object obj = resultSymbol.getObject();
		if (obj instanceof Namespace) {
			SymbolIterator iter = resultSymTab.getChildren(resultSymbol);
			if (iter.hasNext()) {
				// Don't remove this namespace yet, since it has children.
				deferredRemoveIDs.add(originalID);
				return;
			}
		}
		resultSymbol.delete();
		updateResolveIDs(originalPgm, originalID, -1);
		incrementProgress(1);
	}
Renames the oldSymbol to have a name and namespace equivalent to that of the newSymbol.
@param oldProgram the program containing the old symbol
@param oldSymbol the old symbol
@param newProgram the program containing the new symbol
@param newSymbol the new symbol
@throws DuplicateNameException
@throws InvalidInputException
@throws CircularDependencyException
Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/SymbolMerger.java