From 2db4c077aa10defa2c7433ba33298e1eb60544d9 Mon Sep 17 00:00:00 2001 From: Timo Jyrinki Date: Wed, 6 Nov 2013 08:15:35 +0000 Subject: Remove the double redraw_view_if_damaged function. (bzr r3587.1.2) --- plugins/unityshell/src/unityshell.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'plugins/unityshell') diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 91709faaa..f2db18a2a 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -1353,18 +1353,6 @@ void redraw_view_if_damaged(nux::ObjectPtr const& view, CompRegion co view->NeedSoftRedraw(); } -void redraw_view_if_damaged(nux::ObjectPtr const& view, CompRegion const& damage) -{ - if (!view || view->IsRedrawNeeded()) - return; - - auto const& geo = view->GetAbsoluteGeometry(); - CompRegion region(geo.x, geo.y, geo.width, geo.height); - - if (damage.intersects(region)) - view->NeedSoftRedraw(); -} - void UnityScreen::compizDamageNux(CompRegion const& damage) { if (!launcher_controller_) -- cgit v1.2.3