From 9102c1bb92105f9a08ce5446a2c1514c3031eac4 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Sun, 29 Nov 2015 10:13:14 +0000 Subject: [PATCH] Remove unused IMemoryPool --- .../Http/IMemoryPool.cs | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/Microsoft.AspNet.Server.Kestrel/Http/IMemoryPool.cs diff --git a/src/Microsoft.AspNet.Server.Kestrel/Http/IMemoryPool.cs b/src/Microsoft.AspNet.Server.Kestrel/Http/IMemoryPool.cs deleted file mode 100644 index 82dcc7a218..0000000000 --- a/src/Microsoft.AspNet.Server.Kestrel/Http/IMemoryPool.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNet.Server.Kestrel.Http -{ - public interface IMemoryPool - { - byte[] Empty { get; } - - byte[] AllocByte(int minimumSize); - void FreeByte(byte[] memory); - - char[] AllocChar(int minimumSize); - void FreeChar(char[] memory); - - /// - /// Acquires a sub-segment of a larger memory allocation. Used for async sends of write-behind - /// buffers to reduce number of array segments pinned - /// - /// The smallest length of the ArraySegment.Count that may be returned - /// An array segment which is a sub-block of a larger allocation - ArraySegment AllocSegment(int minimumSize); - - /// - /// Frees a sub-segment of a larger memory allocation produced by AllocSegment. The original ArraySegment - /// must be frees exactly once and must have the same offset and count that was returned by the Alloc. - /// If a segment is not freed it won't be re-used and has the same effect as a memory leak, so callers must be - /// implemented exactly correctly. - /// - /// The sub-block that was originally returned by a call to AllocSegment. - void FreeSegment(ArraySegment segment); - } -} \ No newline at end of file