# HG changeset patch
# User cin
# Date 1413264645 -14400
# Node ID cdaaf4792c22120387bd1fd4981a32535e6ba2b7
# Parent efcb076407a741fa7a2a77905d0b90696a5601e4
code cleanup
diff -r efcb076407a7 -r cdaaf4792c22 Implab/Implab.csproj
--- a/Implab/Implab.csproj Sun Oct 12 16:50:34 2014 +0400
+++ b/Implab/Implab.csproj Tue Oct 14 09:30:45 2014 +0400
@@ -141,7 +141,6 @@
-
diff -r efcb076407a7 -r cdaaf4792c22 Implab/ObjectPool.cs
--- a/Implab/ObjectPool.cs Sun Oct 12 16:50:34 2014 +0400
+++ b/Implab/ObjectPool.cs Tue Oct 14 09:30:45 2014 +0400
@@ -23,11 +23,6 @@
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 -r efcb076407a7 -r cdaaf4792c22 Implab/ObjectPoolWrapper.cs
--- a/Implab/ObjectPoolWrapper.cs Sun Oct 12 16:50:34 2014 +0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -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
- }
-}
-