diff --git a/OpenRa.Game/Support/Log.cs b/OpenRa.Game/Support/Log.cs deleted file mode 100644 index c2ca4d5296..0000000000 --- a/OpenRa.Game/Support/Log.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.IO; - -namespace OpenRa -{ - static class Log - { - static StreamWriter writer = File.CreateText("log.txt"); - - static Log() - { - writer.AutoFlush = true; - } - - public static void Write(string format, params object[] args) - { - writer.WriteLine(format, args); - } - } -} diff --git a/OpenRa.Game/Support/Stopwatch.cs b/OpenRa.Game/Support/Stopwatch.cs deleted file mode 100644 index 7387c996d3..0000000000 --- a/OpenRa.Game/Support/Stopwatch.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Runtime.InteropServices; - -namespace OpenRa.Support -{ - class Stopwatch - { - [DllImport("kernel32.dll")] - static extern bool QueryPerformanceCounter(out long value); - [DllImport("kernel32.dll")] - static extern bool QueryPerformanceFrequency(out long frequency); - - long freq, start; - - public Stopwatch() - { - QueryPerformanceFrequency(out freq); - QueryPerformanceCounter(out start); - } - - public double ElapsedTime() - { - long current; - QueryPerformanceCounter(out current); - - return (current - start) / (double)freq; - } - - public void Reset() - { - QueryPerformanceCounter(out start); - } - } -}