Remove unused context from IndexSearch

This commit is contained in:
Jeremy Wu 2020-05-25 19:01:31 +10:00
parent f8a4b924c8
commit b1a0ddfe2f
2 changed files with 1 additions and 8 deletions

View file

@ -20,7 +20,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
{
_settings = settings;
_context = context;
searcher = new IndexSearcher(_context);
searcher = new IndexSearcher();
}
internal List<Result> Search(Query query)

View file

@ -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<Result> ExecuteWindowsIndexSearch(string searchString, string connectionString, Query query)
{
var results = new List<Result>();