Remove #ifdef Mac code now that the mac uses the EventQueue Service

This commit is contained in:
davidm@netscape.com
1999-04-12 22:49:38 +00:00
parent c2a47dea8a
commit 460199ebc6
2 changed files with 4 additions and 20 deletions
+2 -10
View File
@@ -110,10 +110,7 @@ void nsWebShell_SetUnixEventQueue(PLEventQueue* aEventQueue)
gWebShell_UnixEventQueue = aEventQueue;
}
#endif /* OLD_EVENT_QUEUE */
#if XP_MAC
// This has all the same problems as the above
extern "C" PLEventQueue* GetMacPLEventQueue();
#endif
//----------------------------------------------------------------------
@@ -1855,14 +1852,9 @@ OnLinkClickEvent::OnLinkClickEvent(nsWebShell* aHandler,
(PLHandleEventProc) ::HandlePLEvent,
(PLDestroyEventProc) ::DestroyPLEvent);
// XXX: The MAC ifdef should be replaced by the one in #else when
// it uses EventQueueService...
#ifdef XP_MAC
eventQueue = GetMacPLEventQueue();
#else
eventQueue = aHandler->GetEventQueue();
#endif
PL_PostEvent(eventQueue, this);
}