diff --git a/TessBed/UnitTests.cs b/TessBed/UnitTests.cs index 14ea6da..cc7c0fa 100644 --- a/TessBed/UnitTests.cs +++ b/TessBed/UnitTests.cs @@ -36,7 +36,6 @@ public class TestPool : IPool { private IDictionary _newCount = new Dictionary(); private IDictionary _freeCount = new Dictionary(); - private IDictionary _stacks = new Dictionary(); public override T Get() { @@ -47,7 +46,6 @@ public override T Get() _newCount[typeof(T)]++; var obj = new T(); obj.Init(this); - _stacks[obj] = System.Environment.StackTrace; return obj; } @@ -62,7 +60,6 @@ public override void Return(T obj) return; } obj.Reset(this); - _stacks.Remove(obj); if (!_freeCount.ContainsKey(typeof(T))) { _freeCount.Add(typeof(T), 0); @@ -76,10 +73,6 @@ public override void Return(T obj) public void AssertCounts() { - foreach (var stack in _stacks) - { - System.Diagnostics.Debug.WriteLine("Not freed: {0}, allocated from\n{1}", stack.Key.GetType().Name, stack.Value); - } foreach (var type in _newCount) { Assert.AreEqual(type.Value, _freeCount[type.Key], type.Key.ToString());