glx: Remove some can't-happen checks from protocolDestroyDrawable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17422>
This commit is contained in:
Adam Jackson 2022-06-21 17:36:03 -04:00 committed by Marge Bot
parent cf0cfd572e
commit 61834ae898
1 changed files with 0 additions and 4 deletions

View File

@ -551,10 +551,6 @@ CreateDrawable(Display *dpy, struct glx_config *config,
static void
DestroyDrawable(Display * dpy, GLXDrawable drawable, CARD32 glxCode)
{
if ((dpy == NULL) || (drawable == 0)) {
return;
}
protocolDestroyDrawable(dpy, drawable, glxCode);
DestroyGLXDrawable(dpy, drawable);