summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorDave Airlie <airlied@panoply-rh.(none)>2008-03-05 10:31:43 +1000
committerDave Airlie <airlied@panoply-rh.(none)>2008-03-05 10:36:42 +1000
commit81db48536c9d7bb23c448af6a6f1de81df755585 (patch)
tree59c4dbedddbf099937740e4e15f93017be96e9ab /libdrm
parent9c5ba9f5d153877ab2e7cb623cab5607aa5cd4a8 (diff)
remove unused functions + include header file
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drmMode.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index dd1a6ca9..30b434de 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -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.
*/