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
This commit is contained in:
Karl Tomlinson 2012-07-31 14:54:21 +12:00
parent efce7d7c15
commit 9c7714f910
2 changed files with 0 additions and 12 deletions

View File

@ -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;

View File

@ -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