Skip to content

Commit b7694d3

Browse files
committed
Clean up codes
1 parent fa46513 commit b7694d3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Flow.Launcher.Infrastructure/FileExplorerHelper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ private static dynamic GetActiveExplorer()
6767
return explorerWindows.Zip(zOrders).MinBy(x => x.Second).First;
6868
}
6969

70-
private delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);
71-
7270
/// <summary>
7371
/// Gets the z-order for one or more windows atomically with respect to each other. In Windows, smaller z-order is higher. If the window is not top level, the z order is returned as -1.
7472
/// </summary>

Plugins/Flow.Launcher.Plugin.ProcessKiller/ProcessHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public List<ProcessResult> GetMatchingProcesses(string searchTerm)
6868
public static unsafe Dictionary<int, string> GetProcessesWithNonEmptyWindowTitle()
6969
{
7070
var processDict = new Dictionary<int, string>();
71-
PInvoke.EnumWindows((hWnd, lParam) =>
71+
PInvoke.EnumWindows((hWnd, _) =>
7272
{
7373
var windowTitle = GetWindowTitle(hWnd);
7474
if (!string.IsNullOrWhiteSpace(windowTitle) && PInvoke.IsWindowVisible(hWnd))

0 commit comments

Comments
 (0)