Remove checkEvent function no-one uses

It was confusing me until i found we have another one so i think it makes sense
to remove it if no-one uses it.

Change-Id: I49bdb8d795f7617c193c8b62690ee34dc154d2f8
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
Albert Astals Cid 2016-05-31 01:05:27 +02:00 committed by Shawn Rutledge
parent e8224f8149
commit fe08545723
2 changed files with 0 additions and 19 deletions

View File

@ -1771,24 +1771,6 @@ void QXcbConnection::handleClientMessageEvent(const xcb_client_message_event_t *
window->handleClientMessageEvent(event); window->handleClientMessageEvent(event);
} }
xcb_generic_event_t *QXcbConnection::checkEvent(int type)
{
QXcbEventArray *eventqueue = m_reader->lock();
for (int i = 0; i < eventqueue->size(); ++i) {
xcb_generic_event_t *event = eventqueue->at(i);
if (event && event->response_type == type) {
(*eventqueue)[i] = 0;
m_reader->unlock();
return event;
}
}
m_reader->unlock();
return 0;
}
static const char * xcb_atomnames = { static const char * xcb_atomnames = {
// window-manager <-> client protocols // window-manager <-> client protocols
"WM_PROTOCOLS\0" "WM_PROTOCOLS\0"

View File

@ -447,7 +447,6 @@ public:
QXcbWindowEventListener *windowEventListenerFromId(xcb_window_t id); QXcbWindowEventListener *windowEventListenerFromId(xcb_window_t id);
QXcbWindow *platformWindowFromId(xcb_window_t id); QXcbWindow *platformWindowFromId(xcb_window_t id);
xcb_generic_event_t *checkEvent(int type);
template<typename T> template<typename T>
inline xcb_generic_event_t *checkEvent(T &checker); inline xcb_generic_event_t *checkEvent(T &checker);