From 67ae8e579e5560a0616f910db6d0f00838732bb2 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Sat, 13 Jul 2024 22:16:45 +1000 Subject: [PATCH] remove duplicate env variable check method --- .../Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs index 9593a5a52..0f9d888c3 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs @@ -247,12 +247,5 @@ namespace Flow.Launcher.Plugin.Explorer.Search x => FilesFolders.ReturnPreviousDirectoryIfIncompleteString(pathToDirectory).StartsWith(x.Path, StringComparison.OrdinalIgnoreCase)) && WindowsIndex.WindowsIndex.PathIsIndexed(pathToDirectory); } - - internal static bool IsEnvironmentVariableSearch(string search) - { - return search.StartsWith("%") - && search != "%%" - && !search.Contains('\\'); - } } }