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:
parent
7d8cabd027
commit
5098801b3a
|
@ -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(®, ®, &pWin->clipList);
|
||||
if (generateExposures)
|
||||
(*pWin->drawable.pScreen->WindowExposures)(pWin, ®, pBSReg);
|
||||
(*pWin->drawable.pScreen->WindowExposures)(pWin, ®, NULL);
|
||||
else if (pWin->backgroundState != None)
|
||||
miPaintWindow(pWin, ®, PW_BACKGROUND);
|
||||
RegionUninit(®);
|
||||
if (pBSReg)
|
||||
RegionDestroy(pBSReg);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue
Block a user