# HG changeset patch # User cin # Date 2014-10-14 05:30:45 # Node ID cdaaf4792c22120387bd1fd4981a32535e6ba2b7 # Parent efcb076407a741fa7a2a77905d0b90696a5601e4 code cleanup diff --git a/Implab/Implab.csproj b/Implab/Implab.csproj --- a/Implab/Implab.csproj +++ b/Implab/Implab.csproj @@ -141,7 +141,6 @@ - diff --git a/Implab/ObjectPool.cs b/Implab/ObjectPool.cs --- a/Implab/ObjectPool.cs +++ b/Implab/ObjectPool.cs @@ -23,11 +23,6 @@ namespace Implab { protected ObjectPool() : this(Environment.ProcessorCount+1) { } - public ObjectPoolWrapper AllocateAuto() { - - return new ObjectPoolWrapper(Allocate(), this); - } - public T Allocate() { if (m_disposed) throw new ObjectDisposedException(ToString()); diff --git a/Implab/ObjectPoolWrapper.cs b/Implab/ObjectPoolWrapper.cs deleted file mode 100644 --- a/Implab/ObjectPoolWrapper.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; - -namespace Implab { - public class ObjectPoolWrapper : IDisposable { - readonly T m_value; - readonly ObjectPool m_pool; - - internal ObjectPoolWrapper(T value, ObjectPool pool) { - m_value = value; - m_pool = pool; - } - - public T Value { - get { return m_value; } - } - - #region IDisposable implementation - public void Dispose() { - m_pool.Release(m_value); - } - #endregion - } -} -