Skip to content

Commit ea4286b

Browse files
committed
clear backwards compat code
1 parent 823d4e1 commit ea4286b

File tree

3 files changed

+0
-42
lines changed

3 files changed

+0
-42
lines changed

Flow.Launcher.Core/ExternalPlugins/Environments/AbstractPluginEnvironment.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,6 @@ internal IEnumerable<PluginPair> Setup()
4141
if (!PluginMetadataList.Any(o => o.Language.Equals(Language, StringComparison.OrdinalIgnoreCase)))
4242
return new List<PluginPair>();
4343

44-
// TODO: Remove. This is backwards compatibility for 1.10.0 release- changed PythonEmbeded to Environments/Python
45-
if (Language.Equals(AllowedLanguage.Python, StringComparison.OrdinalIgnoreCase))
46-
{
47-
FilesFolders.RemoveFolderIfExists(Path.Combine(DataLocation.DataDirectory(), "PythonEmbeddable"));
48-
49-
if (!string.IsNullOrEmpty(PluginSettings.PythonDirectory) && PluginSettings.PythonDirectory.StartsWith(Path.Combine(DataLocation.DataDirectory(), "PythonEmbeddable")))
50-
{
51-
InstallEnvironment();
52-
PluginSettings.PythonDirectory = string.Empty;
53-
}
54-
}
55-
5644
if (!string.IsNullOrEmpty(PluginsSettingsFilePath) && FilesFolders.FileExists(PluginsSettingsFilePath))
5745
{
5846
// Ensure latest only if user is using Flow's environment setup.

Flow.Launcher.Infrastructure/Storage/ISavable.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ public string NodeExecutablePath
2626
}
2727
}
2828

29-
// TODO: Remove. This is backwards compatibility for 1.10.0 release.
30-
public string PythonDirectory { get; set; }
31-
3229
public Dictionary<string, Plugin> Plugins { get; set; } = new Dictionary<string, Plugin>();
3330

3431
public void UpdatePluginSettings(List<PluginMetadata> metadatas)
@@ -38,25 +35,6 @@ public void UpdatePluginSettings(List<PluginMetadata> metadatas)
3835
if (Plugins.ContainsKey(metadata.ID))
3936
{
4037
var settings = Plugins[metadata.ID];
41-
42-
if (metadata.ID == "572be03c74c642baae319fc283e561a8" && metadata.ActionKeywords.Count > settings.ActionKeywords.Count)
43-
{
44-
// TODO: Remove. This is backwards compatibility for Explorer 1.8.0 release.
45-
// Introduced two new action keywords in Explorer, so need to update plugin setting in the UserData folder.
46-
if (settings.Version.CompareTo("1.8.0") < 0)
47-
{
48-
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for index search
49-
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for path search
50-
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for quick access action keyword
51-
}
52-
53-
// TODO: Remove. This is backwards compatibility for Explorer 1.9.0 release.
54-
// Introduced a new action keywords in Explorer since 1.8.0, so need to update plugin setting in the UserData folder.
55-
if (settings.Version.CompareTo("1.8.0") > 0)
56-
{
57-
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for quick access action keyword
58-
}
59-
}
6038

6139
if (string.IsNullOrEmpty(settings.Version))
6240
settings.Version = metadata.Version;

0 commit comments

Comments
 (0)