@Override
	synchronized void removeTransactionListener(DomainObjectAdapterDB object,
			TransactionListener listener) {
		for (DomainObjectTransactionManager mgr : domainObjectTransactionManagers) {
			if (mgr.getDomainObject() == object) {
				mgr.removeTransactionListener(object, listener);
				return;
			}
		}
		throw new IllegalArgumentException("invalid domain object");
	}
Returns the undo stack depth.
(The number of items on the undo stack)
This method is for JUnits.
@return the undo stack depth
Ghidra/Framework/Project/src/main/java/ghidra/framework/data/SynchronizedTransactionManager.java