Skip to content

Commit 9dbfcd8

Browse files
committed
Delete unused miModifyBanking()
1 parent 94825ad commit 9dbfcd8

File tree

2 files changed

+0
-60
lines changed

2 files changed

+0
-60
lines changed

mi/mibank.c

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
* dropped due to colour flashing concerns.
6868
*
6969
* TODO:
70-
* - Allow miModifyBanking() to change BankSize and nBankDepth.
7170
* - Re-instate shared and double banking for framebuffers whose pixmap formats
7271
* don't describe how the server "sees" the screen.
7372
* - Remove remaining assumptions that a pixmap's devPrivate field points
@@ -2216,59 +2215,6 @@ miBankNewSerialNumber(
22162215
return WT_WALKCHILDREN;
22172216
}
22182217

2219-
/* This entry modifies the banking interface */
2220-
Bool
2221-
miModifyBanking(
2222-
ScreenPtr pScreen,
2223-
miBankInfoPtr pBankInfo
2224-
)
2225-
{
2226-
unsigned int type;
2227-
2228-
if (!pScreen)
2229-
return FALSE;
2230-
2231-
if (miBankGeneration == serverGeneration)
2232-
{
2233-
SCREEN_INIT;
2234-
2235-
if (pScreenPriv)
2236-
{
2237-
if (!pBankInfo || !pBankInfo->BankSize ||
2238-
!pBankInfo->pBankA || !pBankInfo->pBankB ||
2239-
!pBankInfo->SetSourceBank || !pBankInfo->SetDestinationBank ||
2240-
!pBankInfo->SetSourceAndDestinationBanks)
2241-
return FALSE;
2242-
2243-
/* BankSize and nBankDepth cannot, as yet, be changed */
2244-
if ((pScreenPriv->BankInfo.BankSize != pBankInfo->BankSize) ||
2245-
(pScreenPriv->BankInfo.nBankDepth != pBankInfo->nBankDepth))
2246-
return FALSE;
2247-
2248-
if ((type = miBankDeriveType(pScreen, pBankInfo)) == BANK_NOBANK)
2249-
return FALSE;
2250-
2251-
/* Reset banking info */
2252-
pScreenPriv->BankInfo = *pBankInfo;
2253-
if (type != pScreenPriv->type)
2254-
{
2255-
/*
2256-
* Banking type is changing. Revalidate all window GC's.
2257-
*/
2258-
pScreenPriv->type = type;
2259-
WalkTree(pScreen, miBankNewSerialNumber, 0);
2260-
}
2261-
2262-
return TRUE;
2263-
}
2264-
}
2265-
2266-
if (!pBankInfo || !pBankInfo->BankSize)
2267-
return TRUE; /* No change requested */
2268-
2269-
return FALSE;
2270-
}
2271-
22722218
/*
22732219
* Given various screen attributes, determine the minimum scanline width such
22742220
* that each scanline is server and DDX padded and any pixels with imbedded

mi/mibank.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,6 @@ miInitializeBanking(
9494
miBankInfoPtr /*pBankInfo*/
9595
);
9696

97-
Bool
98-
miModifyBanking(
99-
ScreenPtr /*pScreen*/,
100-
miBankInfoPtr /*pBankInfo*/
101-
);
102-
10397
/*
10498
* This function determines the minimum screen width, given a initial estimate
10599
* and various screen attributes. DDX needs to determine this width before

0 commit comments

Comments
 (0)