Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions LibTessDotNet/Sources/MeshUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ public interface ITypePool
{
private Queue<T> _pool = new Queue<T>();

private static readonly Func<T> Creator = Expression.Lambda<Func<T>>(Expression.New(typeof(T))).Compile();

public object Get()
{
lock (_pool)
Expand All @@ -138,7 +136,7 @@ public object Get()
return _pool.Dequeue();
}
}
return Creator();
return new T();
}

public void Return(object obj)
Expand Down