Skip to content

Commit 18d1bb5

Browse files
author
TheBestPessimist
committed
Cleanup unused properties
1 parent 1b9a879 commit 18d1bb5

File tree

1 file changed

+3
-44
lines changed

1 file changed

+3
-44
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingAPI.cs

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313

1414
namespace Flow.Launcher.Plugin.Explorer.Search.Everything
1515
{
16-
1716
public static class EverythingApi
1817
{
19-
2018
private const int BufferSize = 4096;
2119

2220
private static SemaphoreSlim _semaphore = new(1, 1);
21+
2322
// cached buffer to remove redundant allocations.
2423
private static readonly StringBuilder buffer = new(BufferSize);
2524

@@ -35,46 +34,6 @@ public enum StateCode
3534
InvalidCallError
3635
}
3736

38-
/// <summary>
39-
/// Gets or sets a value indicating whether [match path].
40-
/// </summary>
41-
/// <value><c>true</c> if [match path]; otherwise, <c>false</c>.</value>
42-
public static bool MatchPath // TODO these seem to be unused, and they're related exactly to the feature i want: make everything search through the whole path. How should these be used? Should they be removed instead? IMHO, it seems better to use full path search by default, so i'd remove this completely
43-
{
44-
get => EverythingApiDllImport.Everything_GetMatchPath();
45-
set => EverythingApiDllImport.Everything_SetMatchPath(value);
46-
}
47-
48-
/// <summary>
49-
/// Gets or sets a value indicating whether [match case].
50-
/// </summary>
51-
/// <value><c>true</c> if [match case]; otherwise, <c>false</c>.</value>
52-
public static bool MatchCase
53-
{
54-
get => EverythingApiDllImport.Everything_GetMatchCase();
55-
set => EverythingApiDllImport.Everything_SetMatchCase(value);
56-
}
57-
58-
/// <summary>
59-
/// Gets or sets a value indicating whether [match whole word].
60-
/// </summary>
61-
/// <value><c>true</c> if [match whole word]; otherwise, <c>false</c>.</value>
62-
public static bool MatchWholeWord
63-
{
64-
get => EverythingApiDllImport.Everything_GetMatchWholeWord();
65-
set => EverythingApiDllImport.Everything_SetMatchWholeWord(value);
66-
}
67-
68-
/// <summary>
69-
/// Gets or sets a value indicating whether [enable regex].
70-
/// </summary>
71-
/// <value><c>true</c> if [enable regex]; otherwise, <c>false</c>.</value>
72-
public static bool EnableRegex
73-
{
74-
get => EverythingApiDllImport.Everything_GetRegex();
75-
set => EverythingApiDllImport.Everything_SetRegex(value);
76-
}
77-
7837
/// <summary>
7938
/// Checks whether the sort option is Fast Sort.
8039
/// </summary>
@@ -95,7 +54,7 @@ public static async ValueTask<bool> IsEverythingRunningAsync(CancellationToken t
9554

9655
try
9756
{
98-
EverythingApiDllImport.Everything_GetMajorVersion();
57+
EverythingApiDllImport.Everything_GetMajorVersion();
9958
var result = EverythingApiDllImport.Everything_GetLastError() != StateCode.IPCError;
10059
return result;
10160
}
@@ -122,7 +81,7 @@ public static async IAsyncEnumerable<SearchResult> SearchAsync(EverythingSearchO
12281

12382
await _semaphore.WaitAsync(token);
12483

125-
84+
12685
try
12786
{
12887
if (token.IsCancellationRequested)

0 commit comments

Comments
 (0)