remove unused SupportedLanguage property

This commit is contained in:
Jeremy 2022-11-30 21:10:30 +11:00
parent 680ed77daa
commit d297779e4b
5 changed files with 1 additions and 11 deletions

View file

@ -9,7 +9,6 @@ namespace Flow.Launcher.Core.Plugin
internal class ExecutablePlugin : JsonRPCPlugin internal class ExecutablePlugin : JsonRPCPlugin
{ {
private readonly ProcessStartInfo _startInfo; private readonly ProcessStartInfo _startInfo;
public override string SupportedLanguage { get; set; } = AllowedLanguage.Executable;
public ExecutablePlugin(string filename) public ExecutablePlugin(string filename)
{ {

View file

@ -34,10 +34,6 @@ namespace Flow.Launcher.Core.Plugin
protected PluginInitContext context; protected PluginInitContext context;
public const string JsonRPC = "JsonRPC"; public const string JsonRPC = "JsonRPC";
/// <summary>
/// The language this JsonRPCPlugin support
/// </summary>
public abstract string SupportedLanguage { get; set; }
protected abstract Task<Stream> RequestAsync(JsonRPCRequestModel rpcRequest, CancellationToken token = default); protected abstract Task<Stream> RequestAsync(JsonRPCRequestModel rpcRequest, CancellationToken token = default);
protected abstract string Request(JsonRPCRequestModel rpcRequest, CancellationToken token = default); protected abstract string Request(JsonRPCRequestModel rpcRequest, CancellationToken token = default);

View file

@ -17,8 +17,6 @@ namespace Flow.Launcher.Core.Plugin
{ {
private readonly ProcessStartInfo _startInfo; private readonly ProcessStartInfo _startInfo;
public override string SupportedLanguage { get; set; } = AllowedLanguage.Executable;
public NodePlugin(string filename) public NodePlugin(string filename)
{ {
_startInfo = new ProcessStartInfo _startInfo = new ProcessStartInfo

View file

@ -11,7 +11,6 @@ namespace Flow.Launcher.Core.Plugin
internal class PythonPlugin : JsonRPCPlugin internal class PythonPlugin : JsonRPCPlugin
{ {
private readonly ProcessStartInfo _startInfo; private readonly ProcessStartInfo _startInfo;
public override string SupportedLanguage { get; set; } = AllowedLanguage.Python;
public PythonPlugin(string filename) public PythonPlugin(string filename)
{ {

View file

@ -1,4 +1,4 @@
using NUnit; using NUnit;
using NUnit.Framework; using NUnit.Framework;
using Flow.Launcher.Core.Plugin; using Flow.Launcher.Core.Plugin;
using Flow.Launcher.Plugin; using Flow.Launcher.Plugin;
@ -16,8 +16,6 @@ namespace Flow.Launcher.Test.Plugins
// ReSharper disable once InconsistentNaming // ReSharper disable once InconsistentNaming
internal class JsonRPCPluginTest : JsonRPCPlugin internal class JsonRPCPluginTest : JsonRPCPlugin
{ {
public override string SupportedLanguage { get; set; } = AllowedLanguage.Executable;
protected override string Request(JsonRPCRequestModel rpcRequest, CancellationToken token = default) protected override string Request(JsonRPCRequestModel rpcRequest, CancellationToken token = default)
{ {
throw new System.NotImplementedException(); throw new System.NotImplementedException();