private void removeTagIfUnassigned(FunctionTag tag) {
		FunctionManagerDB functionManagerDB =
			(FunctionManagerDB) resultProgram.getFunctionManager();
		FunctionTagManager functionTagManager = functionManagerDB.getFunctionTagManager();
		if (!functionTagManager.isTagAssigned(tag.getName())) {
			tag.delete();
		}
	}
Removes the given tag from the program if it is not currently being used by
any functions.

@param tag the tag to remove
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMerge.java