Skip to content

Commit 59a1837

Browse files
committed
remove in use obsolete GetAllRemainingParameter and use Search
1 parent ac46fdc commit 59a1837

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

Flow.Launcher.Core/Plugin/QueryBuilder.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public static Query Build(string text, Dictionary<string, PluginPair> nonGlobalP
2929
else
3030
{ // non action keyword
3131
actionKeyword = string.Empty;
32-
actionParameters = terms.ToList();
3332
search = rawQuery;
3433
}
3534

@@ -38,10 +37,7 @@ public static Query Build(string text, Dictionary<string, PluginPair> nonGlobalP
3837
Terms = terms,
3938
RawQuery = rawQuery,
4039
ActionKeyword = actionKeyword,
41-
Search = search,
42-
// Obsolete value initialisation
43-
ActionName = actionKeyword,
44-
ActionParameters = actionParameters
40+
Search = search
4541
};
4642

4743
return query;

Flow.Launcher.Plugin/Query.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44

@@ -94,7 +94,5 @@ private string SplitSearch(int index)
9494
}
9595

9696
public override string ToString() => RawQuery;
97-
[Obsolete("Use Search instead, this method will be removed in v1.3.0")]
98-
public string GetAllRemainingParameter() => Search;
9997
}
10098
}

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void Init(PluginInitContext context)
3333

3434
public List<Result> Query(Query query)
3535
{
36-
string param = query.GetAllRemainingParameter().TrimStart();
36+
string param = query.Search.TrimStart();
3737

3838
// Should top results be returned? (true if no search parameters have been passed)
3939
var topResults = string.IsNullOrEmpty(param);

0 commit comments

Comments
 (0)