From 9dbfcd89214241626ac2704d1ffffff1cc0c67ae Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 3 Oct 2008 17:40:30 -0400 Subject: [PATCH] Delete unused miModifyBanking() --- mi/mibank.c | 54 ----------------------------------------------------- mi/mibank.h | 6 ------ 2 files changed, 60 deletions(-) diff --git a/mi/mibank.c b/mi/mibank.c index 32d52fe13..68415e605 100644 --- a/mi/mibank.c +++ b/mi/mibank.c @@ -67,7 +67,6 @@ * dropped due to colour flashing concerns. * * TODO: - * - Allow miModifyBanking() to change BankSize and nBankDepth. * - Re-instate shared and double banking for framebuffers whose pixmap formats * don't describe how the server "sees" the screen. * - Remove remaining assumptions that a pixmap's devPrivate field points @@ -2216,59 +2215,6 @@ miBankNewSerialNumber( return WT_WALKCHILDREN; } -/* This entry modifies the banking interface */ -Bool -miModifyBanking( - ScreenPtr pScreen, - miBankInfoPtr pBankInfo -) -{ - unsigned int type; - - if (!pScreen) - return FALSE; - - if (miBankGeneration == serverGeneration) - { - SCREEN_INIT; - - if (pScreenPriv) - { - if (!pBankInfo || !pBankInfo->BankSize || - !pBankInfo->pBankA || !pBankInfo->pBankB || - !pBankInfo->SetSourceBank || !pBankInfo->SetDestinationBank || - !pBankInfo->SetSourceAndDestinationBanks) - return FALSE; - - /* BankSize and nBankDepth cannot, as yet, be changed */ - if ((pScreenPriv->BankInfo.BankSize != pBankInfo->BankSize) || - (pScreenPriv->BankInfo.nBankDepth != pBankInfo->nBankDepth)) - return FALSE; - - if ((type = miBankDeriveType(pScreen, pBankInfo)) == BANK_NOBANK) - return FALSE; - - /* Reset banking info */ - pScreenPriv->BankInfo = *pBankInfo; - if (type != pScreenPriv->type) - { - /* - * Banking type is changing. Revalidate all window GC's. - */ - pScreenPriv->type = type; - WalkTree(pScreen, miBankNewSerialNumber, 0); - } - - return TRUE; - } - } - - if (!pBankInfo || !pBankInfo->BankSize) - return TRUE; /* No change requested */ - - return FALSE; -} - /* * Given various screen attributes, determine the minimum scanline width such * that each scanline is server and DDX padded and any pixels with imbedded diff --git a/mi/mibank.h b/mi/mibank.h index fe93ab41b..327507db9 100644 --- a/mi/mibank.h +++ b/mi/mibank.h @@ -94,12 +94,6 @@ miInitializeBanking( miBankInfoPtr /*pBankInfo*/ ); -Bool -miModifyBanking( - ScreenPtr /*pScreen*/, - miBankInfoPtr /*pBankInfo*/ -); - /* * This function determines the minimum screen width, given a initial estimate * and various screen attributes. DDX needs to determine this width before