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,13 +0,0 @@
using System.Diagnostics;
namespace Wox.Infrastructure
{
public static class DebugHelper
{
public static void WriteLine(string msg)
{
return;
Debug.WriteLine(msg);
}
}
}

View File

@@ -17,7 +17,7 @@ namespace Wox.Infrastructure
public void Dispose()
{
stopwatch.Stop();
DebugHelper.WriteLine(name + ":" + stopwatch.ElapsedMilliseconds + "ms");
Debug.WriteLine(name + ":" + stopwatch.ElapsedMilliseconds + "ms");
}
}
}

View File

@@ -49,7 +49,6 @@
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="DebugHelper.cs" />
<Compile Include="Hotkey\InterceptKeys.cs" />
<Compile Include="Hotkey\KeyEvent.cs" />
<Compile Include="Logger\Log.cs" />