Skip to content

Commit d297779

Browse files
committed
remove unused SupportedLanguage property
1 parent 680ed77 commit d297779

File tree

5 files changed

+1
-11
lines changed

5 files changed

+1
-11
lines changed

Flow.Launcher.Core/Plugin/ExecutablePlugin.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ namespace Flow.Launcher.Core.Plugin
99
internal class ExecutablePlugin : JsonRPCPlugin
1010
{
1111
private readonly ProcessStartInfo _startInfo;
12-
public override string SupportedLanguage { get; set; } = AllowedLanguage.Executable;
1312

1413
public ExecutablePlugin(string filename)
1514
{

Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ internal abstract class JsonRPCPlugin : IAsyncPlugin, IContextMenu, ISettingProv
3434
protected PluginInitContext context;
3535
public const string JsonRPC = "JsonRPC";
3636

37-
/// <summary>
38-
/// The language this JsonRPCPlugin support
39-
/// </summary>
40-
public abstract string SupportedLanguage { get; set; }
4137
protected abstract Task<Stream> RequestAsync(JsonRPCRequestModel rpcRequest, CancellationToken token = default);
4238
protected abstract string Request(JsonRPCRequestModel rpcRequest, CancellationToken token = default);
4339

Flow.Launcher.Core/Plugin/NodePlugin.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ internal class NodePlugin : JsonRPCPlugin
1717
{
1818
private readonly ProcessStartInfo _startInfo;
1919

20-
public override string SupportedLanguage { get; set; } = AllowedLanguage.Executable;
21-
2220
public NodePlugin(string filename)
2321
{
2422
_startInfo = new ProcessStartInfo

Flow.Launcher.Core/Plugin/PythonPlugin.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace Flow.Launcher.Core.Plugin
1111
internal class PythonPlugin : JsonRPCPlugin
1212
{
1313
private readonly ProcessStartInfo _startInfo;
14-
public override string SupportedLanguage { get; set; } = AllowedLanguage.Python;
1514

1615
public PythonPlugin(string filename)
1716
{

Flow.Launcher.Test/Plugins/JsonRPCPluginTest.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using NUnit;
1+
using NUnit;
22
using NUnit.Framework;
33
using Flow.Launcher.Core.Plugin;
44
using Flow.Launcher.Plugin;
@@ -16,8 +16,6 @@ namespace Flow.Launcher.Test.Plugins
1616
// ReSharper disable once InconsistentNaming
1717
internal class JsonRPCPluginTest : JsonRPCPlugin
1818
{
19-
public override string SupportedLanguage { get; set; } = AllowedLanguage.Executable;
20-
2119
protected override string Request(JsonRPCRequestModel rpcRequest, CancellationToken token = default)
2220
{
2321
throw new System.NotImplementedException();

0 commit comments

Comments
 (0)