From b1a0ddfe2f7fd33e5ff70f64cc25f9958103f1f8 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Mon, 25 May 2020 19:01:31 +1000 Subject: [PATCH] Remove unused context from IndexSearch --- .../Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs | 2 +- .../Search/WindowsIndex/IndexSearcher.cs | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs index c06d1db45..b1d00acbb 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs @@ -20,7 +20,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search { _settings = settings; _context = context; - searcher = new IndexSearcher(_context); + searcher = new IndexSearcher(); } internal List Search(Query query) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearcher.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearcher.cs index b7f172892..79c5df68c 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearcher.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearcher.cs @@ -20,16 +20,9 @@ namespace Flow.Launcher.Plugin.Explorer.Search.WindowsIndex public OleDbDataReader dataReaderResults; - private PluginInitContext _context; - // Reserved keywords in oleDB private string ReservedStringPattern = @"^[\/\\\$\%]+$"; - public IndexSearcher(PluginInitContext context) - { - _context = context; - } - internal List ExecuteWindowsIndexSearch(string searchString, string connectionString, Query query) { var results = new List();