fix for 22943. removing xp-mac specific code from xp interface, enabling asserts

on the mac. r= sdagley


git-svn-id: svn://10.0.0.236/trunk@56985 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
2000-01-06 20:08:14 +00:00
parent a8abf9e1c9
commit f21187a4e6
4 changed files with 4 additions and 44 deletions

View File

@@ -536,33 +536,3 @@ nsEventQueueServiceImpl::ResolveEventQueue(nsIEventQueue* queueOrConstant, nsIEv
NS_ADDREF(*resultQueue);
return NS_OK;
}
#ifdef XP_MAC
// MAC specific. Will go away someday
// Bwah ha ha h ha ah aha ha ha
NS_IMETHODIMP nsEventQueueServiceImpl::ProcessEvents()
{
if (mEventQTable) {
EventQueueEntry *entry;
nsIEventQueue *queue;
// never use the hashtable enumerator if there's a chance (there is) that an
// event queue entry could be destroyed while inside. this enumerator can
// handle that.
PR_EnterMonitor(mEventQMonitor);
mEnumerator.Reset(mBaseEntry);
while ((entry = mEnumerator.Get()) != 0) {
PR_ExitMonitor(mEventQMonitor);
queue = entry->GetEventQueue();
if (queue) {
queue->ProcessPendingEvents();
NS_RELEASE(queue);
}
PR_EnterMonitor(mEventQMonitor);
}
PR_ExitMonitor(mEventQMonitor);
}
return NS_OK;
}
#endif