remove unused functions + include header file
authorDave Airlie <airlied@panoply-rh.(none)>
Wed, 5 Mar 2008 00:31:43 +0000 (10:31 +1000)
committerDave Airlie <airlied@panoply-rh.(none)>
Wed, 5 Mar 2008 00:36:42 +0000 (10:36 +1000)
libdrm/xf86drmMode.c

index dd1a6ca..30b434d 100644 (file)
@@ -36,6 +36,7 @@
  * platforms find which headers to include to get uint32_t
  */
 #include <stdint.h>
+#include <sys/ioctl.h>
 
 #include "xf86drmMode.h"
 #include "xf86drm.h"
@@ -68,27 +69,6 @@ void* drmAllocCpy(void *array, int count, int entry_size)
        return r;
 }
 
-/**
- * Generate crtc and output ids.
- *
- * Will generate ids starting from 1 up to count if count is greater then 0.
- */
-static uint32_t* drmAllocGenerate(int count)
-{
-       uint32_t *r;
-       int i;
-
-       if(0 <= count)
-               return 0;
-
-       if (!(r = drmMalloc(count*sizeof(*r))))
-               return 0;
-
-       for (i = 0; i < count; r[i] = ++i);
-
-       return 0;
-}
-
 /*
  * A couple of free functions.
  */