Fix Debug output

DebugHelper is useless, bacuase the return statement is always executed before the actual code.
This commit is contained in:
bao-qian
2015-10-31 18:06:57 +00:00
parent a6f8eb28f2
commit 9d9400f4d9
9 changed files with 12 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Threading;
using Wox.Infrastructure;
@@ -15,7 +16,7 @@ namespace Wox.Plugin.Program
if (watchedPath.Contains(path)) return;
if (!Directory.Exists(path))
{
DebugHelper.WriteLine(string.Format("FileChangeWatcher: {0} doesn't exist", path));
Debug.WriteLine(string.Format("FileChangeWatcher: {0} doesn't exist", path));
return;
}

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
@@ -74,7 +75,7 @@ namespace Wox.Plugin.Program
{
programs = ProgramCacheStorage.Instance.Programs;
}
DebugHelper.WriteLine(string.Format("Preload {0} programs from cache", programs.Count));
Debug.WriteLine(string.Format("Preload {0} programs from cache", programs.Count));
using (new Timeit("Program Index"))
{
IndexPrograms();