diff options
author | Adam Jackson <ajax@redhat.com> | 2008-10-03 17:40:30 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-10-03 17:51:21 -0400 |
commit | 9dbfcd89214241626ac2704d1ffffff1cc0c67ae (patch) | |
tree | 8e6a7600c34ad07ef16a503a1ad284c23d0030ee /mi | |
parent | 94825ad3c72a1c3f6a61199c302841f63241cf87 (diff) |
Delete unused miModifyBanking()
Diffstat (limited to 'mi')
-rw-r--r-- | mi/mibank.c | 54 | ||||
-rw-r--r-- | mi/mibank.h | 6 |
2 files changed, 0 insertions, 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 |