diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-01-11 13:23:06 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-01-11 13:23:06 +1000 |
commit | da5c0dc6040096fd12ddb6a04a22fada89115ccb (patch) | |
tree | 1c9b2966cf847699be09607139e598d66e25be77 | |
parent | 104b3ea842d4cebd993d3e7e9d55ebcadae0cf28 (diff) |
remove more unused code
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | src/drmmode_display.c | 24 | ||||
-rw-r--r-- | src/nv_proto.h | 1 | ||||
-rw-r--r-- | src/nv_type.h | 1 |
3 files changed, 0 insertions, 26 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 04353e6..97a4a59 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -1232,30 +1232,6 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, int fd, int cpp) return TRUE; } -Bool -drmmode_is_rotate_pixmap(PixmapPtr ppix, struct nouveau_bo **bo) -{ - ScrnInfoPtr pScrn = xf86Screens[ppix->drawable.pScreen->myNum]; - xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR (pScrn); - int i; - - for (i = 0; i < config->num_crtc; i++) { - xf86CrtcPtr crtc = config->crtc[i]; - drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private; - - if (!drmmode_crtc->rotate_bo) - continue; - - if (drmmode_crtc->rotate_pixmap == ppix) { - if (bo) - *bo = drmmode_crtc->rotate_bo; - return TRUE; - } - } - - return FALSE; -} - void drmmode_adjust_frame(ScrnInfoPtr scrn, int x, int y, int flags) { diff --git a/src/nv_proto.h b/src/nv_proto.h index 06ee598..f8854e3 100644 --- a/src/nv_proto.h +++ b/src/nv_proto.h @@ -3,7 +3,6 @@ /* in drmmode_display.c */ Bool drmmode_pre_init(ScrnInfoPtr pScrn, int fd, int cpp); -Bool drmmode_is_rotate_pixmap(PixmapPtr, struct nouveau_bo **); void drmmode_adjust_frame(ScrnInfoPtr pScrn, int x, int y, int flags); void drmmode_remove_fb(ScrnInfoPtr pScrn); Bool drmmode_cursor_init(ScreenPtr pScreen); diff --git a/src/nv_type.h b/src/nv_type.h index 23340e8..54ce8f8 100644 --- a/src/nv_type.h +++ b/src/nv_type.h @@ -169,7 +169,6 @@ nouveau_pixmap(PixmapPtr ppix) return (struct nouveau_pixmap *)exaGetPixmapDriverPrivate(ppix); } -Bool drmmode_is_rotate_pixmap(PixmapPtr, struct nouveau_bo **); static inline struct nouveau_bo * nouveau_pixmap_bo(PixmapPtr ppix) { |