From 816b8acfe81d5e2d666eb926f669d6015df0bbac Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Mon, 13 Jun 2011 12:13:44 -0700 Subject: [PATCH] glx: Remove check for gc->vtable->destroy 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 --- src/glx/glxcmds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 774d38b2634..cd8bc97b192 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -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 -- 2.30.2