Skip to content

Commit 13c70a9

Browse files
committed
Remove unused code
1 parent 03cedcc commit 13c70a9

File tree

3 files changed

+4
-30
lines changed

3 files changed

+4
-30
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ private async Task<List<Result>> DeserializedResultAsync(Stream output)
9494
{
9595
if (output == Stream.Null) return null;
9696

97-
var temp = System.Text.Encoding.UTF8.GetString(((MemoryStream)output).ToArray());
98-
System.Diagnostics.Debug.WriteLine(temp);
99-
10097
var queryResponseModel =
10198
await JsonSerializer.DeserializeAsync<JsonRPCQueryResponseModel>(output, options);
10299

Flow.Launcher/Helper/SingleInstance.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -385,28 +385,5 @@ private static void ActivateFirstInstance()
385385
}
386386

387387
#endregion
388-
389-
#region Private Classes
390-
391-
/// <summary>
392-
/// Remoting service class which is exposed by the server i.e the first instance and called by the second instance
393-
/// to pass on the command line arguments to the first instance and cause it to activate itself.
394-
/// </summary>
395-
private class IPCRemoteService : MarshalByRefObject
396-
{
397-
398-
/// <summary>
399-
/// Remoting Object's ease expires after every 5 minutes by default. We need to override the InitializeLifetimeService class
400-
/// to ensure that lease never expires.
401-
/// </summary>
402-
/// <returns>Always null.</returns>
403-
[Obsolete] // overrides an obsolete method, so also needs to be obsolete
404-
public override object InitializeLifetimeService()
405-
{
406-
return null;
407-
}
408-
}
409-
410-
#endregion
411388
}
412389
}

Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@ public Application(AppxPackageHelper.IAppxManifestApplication manifestApp, UWP p
427427

428428
manifestApp.GetAppUserModelId(out string tmpUserModelId);
429429
manifestApp.GetAppUserModelId(out string tmpUniqueIdentifier);
430-
_ = manifestApp.GetStringValue("DisplayName", out string tmpDisplayName);
431-
_ = manifestApp.GetStringValue("Description", out string tmpDescription);
432-
_ = manifestApp.GetStringValue("BackgroundColor", out string tmpBackgroundColor);
433-
_ = manifestApp.GetStringValue("EntryPoint", out string tmpEntryPoint);
430+
manifestApp.GetStringValue("DisplayName", out string tmpDisplayName);
431+
manifestApp.GetStringValue("Description", out string tmpDescription);
432+
manifestApp.GetStringValue("BackgroundColor", out string tmpBackgroundColor);
433+
manifestApp.GetStringValue("EntryPoint", out string tmpEntryPoint);
434434

435435
UserModelId = tmpUserModelId;
436436
UniqueIdentifier = tmpUniqueIdentifier;

0 commit comments

Comments
 (0)