summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/SearchBar.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/unity-shared/SearchBar.cpp b/unity-shared/SearchBar.cpp
index d769eb27c..86c9b3180 100644
--- a/unity-shared/SearchBar.cpp
+++ b/unity-shared/SearchBar.cpp
@@ -394,24 +394,7 @@ void SearchBar::Draw(nux::GraphicsEngine& graphics_engine, bool force_draw)
highlight_layer_->SetGeometry(geo);
highlight_layer_->Renderlayer(graphics_engine);
}
- else if (expander_view_ && expander_view_->IsVisible())
- {
- nux::Geometry geo(expander_view_->GetGeometry());
-
- geo.y -= (HIGHLIGHT_HEIGHT- geo.height) / 2;
- geo.height = HIGHLIGHT_HEIGHT;
- if (RedirectedAncestor())
- {
- unsigned int alpha = 0, src = 0, dest = 0;
- graphics_engine.GetRenderStates().GetBlend(alpha, src, dest);
- // This is necessary when doing redirected rendering.
- // Clean the area below this view before drawing anything.
- graphics_engine.GetRenderStates().SetBlend(false);
- graphics_engine.QRP_Color(geo.x, geo.y, geo.width, geo.height, nux::Color(0.0f, 0.0f, 0.0f, 0.0f));
- graphics_engine.GetRenderStates().SetBlend(alpha, src, dest);
- }
- }
graphics_engine.PopClippingRectangle();
}