mi: delete unused code

pBSReg is always NULL, so the statement after the conditional will never be
reached.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
This commit is contained in:
Tiago Vignatti 2010-06-12 16:57:50 +03:00
parent 7d8cabd027
commit 5098801b3a

View File

@ -66,7 +66,6 @@ miClearToBackground(WindowPtr pWin,
{
BoxRec box;
RegionRec reg;
RegionPtr pBSReg = NullRegion;
BoxPtr extents;
int x1, y1, x2, y2;
@ -114,12 +113,10 @@ miClearToBackground(WindowPtr pWin,
RegionIntersect(&reg, &reg, &pWin->clipList);
if (generateExposures)
(*pWin->drawable.pScreen->WindowExposures)(pWin, &reg, pBSReg);
(*pWin->drawable.pScreen->WindowExposures)(pWin, &reg, NULL);
else if (pWin->backgroundState != None)
miPaintWindow(pWin, &reg, PW_BACKGROUND);
RegionUninit(&reg);
if (pBSReg)
RegionDestroy(pBSReg);
}
void