From ea58a697c1ba032292e3d15f559fc567cc459434 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 19 Mar 2010 20:44:23 +0000 Subject: (svn r19474) -Cleanup: remove ByteBlob::Append(T*, num_items) --- src/misc/blob.hpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/misc') diff --git a/src/misc/blob.hpp b/src/misc/blob.hpp index 264366b40..ed8c52ac6 100644 --- a/src/misc/blob.hpp +++ b/src/misc/blob.hpp @@ -350,6 +350,7 @@ public: { return (base::Capacity() / type_size); } + /** Return number of additional items that can fit in the Blob without buffer reallocation */ FORCEINLINE uint GetReserve() const { @@ -362,16 +363,6 @@ public: return (T*)base::Append(num_items * type_size); } - /** Add given items (ptr + number of items) at the end of blob */ - FORCEINLINE T *Append(const T *pSrc, uint num_items) - { - T *pDst = GrowSizeNC(num_items); - T *pDstOrg = pDst; - T *pDstEnd = pDst + num_items; - while (pDst < pDstEnd) new (pDst++) T(*(pSrc++)); - return pDstOrg; - } - /** Ensures that given number of items can be added to the end of Blob. Returns pointer to the * first free (unused) item */ FORCEINLINE T *MakeFreeSpace(uint num_items) -- cgit v1.2.3-70-g09d2