Delete unused miModifyBanking()

This commit is contained in:
Adam Jackson 2008-10-03 17:40:30 -04:00
parent 94825ad3c7
commit 9dbfcd8921
2 changed files with 0 additions and 60 deletions

View File

@ -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

View File

@ -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