Remove unused code

This commit is contained in:
Oren Nachman 2022-08-09 17:41:02 -07:00
parent 03cedcc37e
commit 13c70a9bb7
3 changed files with 4 additions and 30 deletions

View file

@ -94,9 +94,6 @@ namespace Flow.Launcher.Core.Plugin
{
if (output == Stream.Null) return null;
var temp = System.Text.Encoding.UTF8.GetString(((MemoryStream)output).ToArray());
System.Diagnostics.Debug.WriteLine(temp);
var queryResponseModel =
await JsonSerializer.DeserializeAsync<JsonRPCQueryResponseModel>(output, options);

View file

@ -385,28 +385,5 @@ namespace Flow.Launcher.Helper
}
#endregion
#region Private Classes
/// <summary>
/// Remoting service class which is exposed by the server i.e the first instance and called by the second instance
/// to pass on the command line arguments to the first instance and cause it to activate itself.
/// </summary>
private class IPCRemoteService : MarshalByRefObject
{
/// <summary>
/// Remoting Object's ease expires after every 5 minutes by default. We need to override the InitializeLifetimeService class
/// to ensure that lease never expires.
/// </summary>
/// <returns>Always null.</returns>
[Obsolete] // overrides an obsolete method, so also needs to be obsolete
public override object InitializeLifetimeService()
{
return null;
}
}
#endregion
}
}

View file

@ -427,10 +427,10 @@ namespace Flow.Launcher.Plugin.Program.Programs
manifestApp.GetAppUserModelId(out string tmpUserModelId);
manifestApp.GetAppUserModelId(out string tmpUniqueIdentifier);
_ = manifestApp.GetStringValue("DisplayName", out string tmpDisplayName);
_ = manifestApp.GetStringValue("Description", out string tmpDescription);
_ = manifestApp.GetStringValue("BackgroundColor", out string tmpBackgroundColor);
_ = manifestApp.GetStringValue("EntryPoint", out string tmpEntryPoint);
manifestApp.GetStringValue("DisplayName", out string tmpDisplayName);
manifestApp.GetStringValue("Description", out string tmpDescription);
manifestApp.GetStringValue("BackgroundColor", out string tmpBackgroundColor);
manifestApp.GetStringValue("EntryPoint", out string tmpEntryPoint);
UserModelId = tmpUserModelId;
UniqueIdentifier = tmpUniqueIdentifier;