diff options
author | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-06-12 16:57:50 +0300 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-09-10 21:49:29 +0300 |
commit | 5098801b3a570d0bb3386d7d210f21a1cbf3bf12 (patch) | |
tree | 716d8dc5b73275398f340b5f8e0296f6193537fc | |
parent | 7d8cabd027cfc55e9921307e5b3dd7052de8496f (diff) |
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>
-rw-r--r-- | mi/miwindow.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mi/miwindow.c b/mi/miwindow.c index 25dd1c045..dc5d21a5f 100644 --- a/mi/miwindow.c +++ b/mi/miwindow.c @@ -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 |