From 3f3791ba2ece8e8a7aa3a5676f5f6361862a292c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 11 Dec 2006 15:20:15 -0800 Subject: [PATCH] Remove remnants of old savedCurrentMode hack. Man, that was gross. --- src/i830.h | 4 ---- src/i830_display.c | 13 ------------- 2 files changed, 17 deletions(-) diff --git a/src/i830.h b/src/i830.h index 2a7a1d88..9809f352 100644 --- a/src/i830.h +++ b/src/i830.h @@ -242,10 +242,6 @@ typedef struct _I830Rec { int cpp; DisplayModePtr currentMode; - /* Mode saved during randr reprobe, which will need to be freed at the point - * of the next SwitchMode, when we lose this last reference to it. - */ - DisplayModePtr savedCurrentMode; I830EntPtr entityPrivate; int init; diff --git a/src/i830_display.c b/src/i830_display.c index 6206243e..b2d9e351 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -976,19 +976,6 @@ i830SetMode(ScrnInfoPtr pScrn, DisplayModePtr pMode) (int)(pMode->HDisplay * pMode->VDisplay * pMode->VRefresh / 1000000)); - if (pI830->savedCurrentMode) { - /* We're done with the currentMode that the last randr probe had left - * behind, so free it. - */ - xfree(pI830->savedCurrentMode->name); - xfree(pI830->savedCurrentMode); - pI830->savedCurrentMode = NULL; - - /* If HW cursor currently showing, reset cursor state */ - if (pI830->CursorInfoRec && !pI830->SWCursor && pI830->cursorOn) - pI830->CursorInfoRec->ShowCursor(pScrn); - } - i830DisableUnusedFunctions(pScrn); i830DescribeOutputConfiguration(pScrn);