From fefa54ca2cf38f4943ed85e55852247049deda17 Mon Sep 17 00:00:00 2001 From: Usman Shafiq Date: Sat, 17 Dec 2022 14:07:20 -0500 Subject: [PATCH] Code Cleanup --- WindowsMediaController/Main.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WindowsMediaController/Main.cs b/WindowsMediaController/Main.cs index 55e1f89..fe99099 100644 --- a/WindowsMediaController/Main.cs +++ b/WindowsMediaController/Main.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; using Windows.Media.Control; @@ -129,7 +128,7 @@ private void CurrentSessionChanged(GlobalSystemMediaTransportControlsSessionMana private MediaSession GetFocusedSession(GlobalSystemMediaTransportControlsSessionManager sender) { var currentSession = sender.GetCurrentSession(); - + MediaSession currentMediaSession = null; if (currentSession != null && _CurrentMediaSessions.TryGetValue(currentSession.SourceAppUserModelId, out MediaSession mediaSession)) {