From 9c7714f9106a4a6ff51bbc341c4c5271e61dc134 Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Tue, 31 Jul 2012 14:54:21 +1200 Subject: [PATCH] b=778031 remove unnecessary ScopedXErrorHandler::GetError interface r=cjones --HG-- extra : transplant_source : %FE%EC%0A%24%1B%8A%B3%D2%94%F6%2B%23%E3%A9R%8Df%90%FF%17 --- gfx/src/X11Util.cpp | 5 ----- gfx/src/X11Util.h | 7 ------- 2 files changed, 12 deletions(-) diff --git a/gfx/src/X11Util.cpp b/gfx/src/X11Util.cpp index 49c8ed085d4..fa12c3f49b9 100644 --- a/gfx/src/X11Util.cpp +++ b/gfx/src/X11Util.cpp @@ -78,12 +78,7 @@ bool ScopedXErrorHandler::SyncAndGetError(Display *dpy, XErrorEvent *ev) { FinishX(dpy); - return GetError(ev); -} -bool -ScopedXErrorHandler::GetError(XErrorEvent *ev) -{ bool retval = mXError.mError.error_code != 0; if (ev) *ev = mXError.mError; diff --git a/gfx/src/X11Util.h b/gfx/src/X11Util.h index 4979b182f5d..57ff6f2697d 100644 --- a/gfx/src/X11Util.h +++ b/gfx/src/X11Util.h @@ -137,13 +137,6 @@ public: * the first one will be returned. */ bool SyncAndGetError(Display *dpy, XErrorEvent *ev = nullptr); - - /** Like SyncAndGetError, but does not sync. Faster, but only reliably catches errors in synchronous calls. - * - * \param ev this optional parameter, if set, will be filled with the XErrorEvent object. If multiple errors occurred, - * the first one will be returned. - */ - bool GetError(XErrorEvent *ev = nullptr); }; } // namespace mozilla