glx: Remove check for gc->vtable->destroy
authorJeremy Huddleston <jeremyhu@apple.com>
Mon, 13 Jun 2011 19:13:44 +0000 (12:13 -0700)
committerJeremy Huddleston <jeremyhu@apple.com>
Mon, 13 Jun 2011 21:51:01 +0000 (14:51 -0700)
gc->vtable->destroy is always set and is used unconditionally
in other places, so don't bother checking for it first.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
src/glx/glxcmds.c

index 774d38b2634180d393e508184f9aa135ad24082b..cd8bc97b1927407271ea980c3cb4b5dc2d767b5e 100644 (file)
@@ -377,8 +377,7 @@ DestroyContext(Display * dpy, GLXContext ctx)
    }
    __glXUnlock();
 
-   if (gc->vtable->destroy)
-      gc->vtable->destroy(gc);
+   gc->vtable->destroy(gc);
 }
 
 _X_EXPORT void