summaryrefslogtreecommitdiff
path: root/src/browser.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2014-11-05 00:19:44 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2014-11-05 21:37:27 +0100
commit309a4989c9eebb280da507f0ba396b6ea519b38e (patch)
tree5d1353f98b129d2ab5c625056c60dc38d6189af6 /src/browser.cpp
parent413fe866de5b7e333cc9ef35e449edcea0263e09 (diff)
remove filtering
Diffstat (limited to 'src/browser.cpp')
-rw-r--r--src/browser.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/browser.cpp b/src/browser.cpp
index a4406945..02e24803 100644
--- a/src/browser.cpp
+++ b/src/browser.cpp
@@ -248,37 +248,6 @@ void Browser::mouseButtonPressed(MEVENT me)
/***********************************************************************/
-bool Browser::allowsFiltering()
-{
- return true;
-}
-
-std::string Browser::currentFilter()
-{
- return RegexFilter<MPD::Item>::currentFilter(w);
-}
-
-void Browser::applyFilter(const std::string &filter)
-{
- if (filter.empty())
- {
- w.clearFilter();
- w.clearFilterResults();
- return;
- }
- try
- {
- w.showAll();
- auto fun = boost::bind(browserEntryMatcher, _1, _2, true);
- auto rx = RegexFilter<MPD::Item>(
- boost::regex(filter, Config.regex_type), fun);
- w.filter(w.begin(), w.end(), rx);
- }
- catch (boost::bad_expression &) { }
-}
-
-/***********************************************************************/
-
bool Browser::allowsSearching()
{
return true;