[Xquartz-changes] [270] AppleSGLX/trunk

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 27 00:00:51 PST 2009


Revision: 270
          http://trac.macosforge.org/projects/xquartz/changeset/270
Author:   gstaplin at apple.com
Date:     2009-02-27 00:00:42 -0800 (Fri, 27 Feb 2009)
Log Message:
-----------
Remove some dead unused code.

apple_glx_destroy_drawable_in_any isn't needed any more.

Modified Paths:
--------------
    AppleSGLX/trunk/apple_glx_context.c
    AppleSGLX/trunk/apple_glx_drawable.h

Modified: AppleSGLX/trunk/apple_glx_context.c
===================================================================
--- AppleSGLX/trunk/apple_glx_context.c	2009-02-27 02:04:06 UTC (rev 269)
+++ AppleSGLX/trunk/apple_glx_context.c	2009-02-27 08:00:42 UTC (rev 270)
@@ -447,25 +447,6 @@
     return false;
 }
 
-void apple_glx_destroy_drawable_in_any(Display *dpy, GLXDrawable d) {
-    struct apple_glx_context *ac;
-    struct apple_glx_drawable *agd;
-
-    lock_context_list();
-
-    for(ac = context_list; ac; ac = ac->next) {
-	if(ac->drawable && ac->drawable->drawable == d) {
-	    agd = ac->drawable;
-	    ac->drawable = NULL;
-	    agd->release(agd);
-	    (void)agd->destroy(agd);
-	    apple_cgl.clear_drawable(ac->context_obj);
-	}
-    }
-
-    unlock_context_list();
-}
-
 /* 
  * The value returned is the total number of contexts set to update. 
  * It's meant for debugging/introspection.

Modified: AppleSGLX/trunk/apple_glx_drawable.h
===================================================================
--- AppleSGLX/trunk/apple_glx_drawable.h	2009-02-27 02:04:06 UTC (rev 269)
+++ AppleSGLX/trunk/apple_glx_drawable.h	2009-02-27 08:00:42 UTC (rev 270)
@@ -149,8 +149,6 @@
 
 void apple_glx_garbage_collect_drawables(Display *dpy);
 
-void apple_glx_destroy_drawable_in_any(Display *dpy, GLXDrawable d);
-
 /* 
  * This returns the total number of drawables. 
  * It's mostly intended for debugging and introspection.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090227/e24f04fc/attachment-0001.html>


More information about the Xquartz-changes mailing list