remove dead code, unnecessary #includes, etc
authorBrian <brian.paul@tungstengraphics.com>
Fri, 2 Nov 2007 18:53:46 +0000 (12:53 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 15:04:47 +0000 (08:04 -0700)
src/mesa/drivers/dri/intel_winsys/intel_context.c
src/mesa/drivers/dri/intel_winsys/intel_lock.c
src/mesa/drivers/dri/intel_winsys/intel_screen.c
src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c

index 3898d2e4af1f2545640a7229a49a41197e76086e..188e973de05de1b9ea1c505783981083d1fa55a2 100644 (file)
@@ -44,8 +44,6 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_context.h"
 
-/*#include "drirenderbuffer.h"*/
-#include "vblank.h"
 #include "utils.h"
 #include "xmlpool.h"            /* for symbolic values of enum-type options */
 
@@ -327,6 +325,7 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
    }
 }
 
+
 GLboolean
 intelUnbindContext(__DRIcontextPrivate * driContextPriv)
 {
@@ -358,14 +357,6 @@ intelMakeCurrent(__DRIcontextPrivate * driContextPriv,
                  __DRIdrawablePrivate * driDrawPriv,
                  __DRIdrawablePrivate * driReadPriv)
 {
-
-#if 0
-   if (driDrawPriv) {
-      fprintf(stderr, "x %d, y %d, width %d, height %d\n",
-             driDrawPriv->x, driDrawPriv->y, driDrawPriv->w, driDrawPriv->h);
-   }
-#endif
-
    if (driContextPriv) {
       struct intel_context *intel =
          (struct intel_context *) driContextPriv->driverPrivate;
@@ -393,7 +384,6 @@ intelMakeCurrent(__DRIcontextPrivate * driContextPriv,
            intelWindowMoved(intel);
            intel->lastStamp = driDrawPriv->lastStamp;
       }
-
    }
    else {
       _mesa_make_current(NULL, NULL, NULL);
@@ -413,8 +403,6 @@ struct intel_context *intelScreenContext(intelScreenPrivate *intelScreen)
 
   GET_CURRENT_CONTEXT(ctx);
   if (ctx == NULL) {
-/*     _mesa_problem(NULL, "No current context in intelScreenContext\n");
-     return NULL; */
      /* need a context for the first time makecurrent is called (for hw lock
         when allocating priv buffers) */
      if (intelScreen->dummyctxptr == NULL) {
index 01d02f9a2ad374fa35464175c9ac1d0b89ab64b6..9636fa998dfd8dd3a6353908d678be2971a4deff 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "glheader.h"
 #include "context.h"
-#include "extensions.h"
+#include "state_tracker/st_public.h"
 
 #include "intel_screen.h"
 #include "intel_context.h"
 #include "i830_dri.h"
 
 
-#include "state_tracker/st_public.h"
-#include "state_tracker/st_context.h"
-
-#include "drirenderbuffer.h"
-#include "vblank.h"
-#include "utils.h"
-#include "xmlpool.h"            /* for symbolic values of enum-type options */
-
-
 
 _glthread_DECLARE_STATIC_MUTEX( lockMutex );
 
index 16e3a226e2c2a14752b4634200e8ca4d9dcdddc0..1fa6b5737880ac5ba0a81ae4ba19b2bc4d199e9c 100644 (file)
@@ -28,9 +28,7 @@
 #include "glheader.h"
 #include "context.h"
 #include "framebuffer.h"
-#include "matrix.h"
 #include "renderbuffer.h"
-#include "simple_list.h"
 #include "utils.h"
 #include "vblank.h"
 #include "xmlpool.h"
index a642d53216f4c60f3cbf18043cc66195987252df..f6e7e16000f45de930c5a7ac675b800c2f837335 100644 (file)
@@ -32,9 +32,6 @@
 #include "intel_reg.h"
 #include "intel_winsys.h"
 #include "context.h"
-#include "utils.h"
-#include "drirenderbuffer.h"
-#include "vblank.h"
 
 #include "pipe/p_context.h"
 #include "state_tracker/st_context.h"