mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Remove unused context from IndexSearch
This commit is contained in:
parent
f8a4b924c8
commit
b1a0ddfe2f
2 changed files with 1 additions and 8 deletions
|
|
@ -20,7 +20,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
||||||
{
|
{
|
||||||
_settings = settings;
|
_settings = settings;
|
||||||
_context = context;
|
_context = context;
|
||||||
searcher = new IndexSearcher(_context);
|
searcher = new IndexSearcher();
|
||||||
}
|
}
|
||||||
|
|
||||||
internal List<Result> Search(Query query)
|
internal List<Result> Search(Query query)
|
||||||
|
|
|
||||||
|
|
@ -20,16 +20,9 @@ namespace Flow.Launcher.Plugin.Explorer.Search.WindowsIndex
|
||||||
|
|
||||||
public OleDbDataReader dataReaderResults;
|
public OleDbDataReader dataReaderResults;
|
||||||
|
|
||||||
private PluginInitContext _context;
|
|
||||||
|
|
||||||
// Reserved keywords in oleDB
|
// Reserved keywords in oleDB
|
||||||
private string ReservedStringPattern = @"^[\/\\\$\%]+$";
|
private string ReservedStringPattern = @"^[\/\\\$\%]+$";
|
||||||
|
|
||||||
public IndexSearcher(PluginInitContext context)
|
|
||||||
{
|
|
||||||
_context = context;
|
|
||||||
}
|
|
||||||
|
|
||||||
internal List<Result> ExecuteWindowsIndexSearch(string searchString, string connectionString, Query query)
|
internal List<Result> ExecuteWindowsIndexSearch(string searchString, string connectionString, Query query)
|
||||||
{
|
{
|
||||||
var results = new List<Result>();
|
var results = new List<Result>();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue