From 37240b81daa4ed46c27e439d22b6fd9909dac249 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 22 Nov 2006 11:56:41 -0500 Subject: clean up some leftover cruft. --- src/savage_video.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'src/savage_video.c') diff --git a/src/savage_video.c b/src/savage_video.c index ed45b0f..64dcef1 100644 --- a/src/savage_video.c +++ b/src/savage_video.c @@ -1378,39 +1378,7 @@ SavageAllocateMemory( } offset = linear->offset * cpp; } -#if 0 - if(area) { - if((area->box.y2 - area->box.y1) >= numlines) - return area; - - if(xf86ResizeOffscreenArea(area, pScrn->displayWidth, numlines)) - return area; - - xf86FreeOffscreenArea(area); - } - - pScreen = screenInfo.screens[pScrn->scrnIndex]; - - xf86PurgeUnlockedOffscreenAreas(pScreen); - new_area = xf86AllocateOffscreenArea(pScreen, pScrn->displayWidth, - numlines, 0, NULL, NULL, NULL); - if(!new_area) { - int max_w, max_h; - - xf86QueryLargestOffscreenArea(pScreen, &max_w, &max_h, 0, - FAVOR_WIDTH_THEN_AREA, PRIORITY_EXTREME); - - if((max_w < pScrn->displayWidth) || (max_h < numlines)) - return NULL; - - xf86PurgeUnlockedOffscreenAreas(pScreen); - new_area = xf86AllocateOffscreenArea(pScreen, pScrn->displayWidth, - numlines, 0, NULL, NULL, NULL); - } - - return new_area; -#endif return offset; } -- cgit v1.2.3