cleanup - remove old cpu_memcpy and cpu_i64FromDouble that are no longer needed

This was SVN commit r8517.
This commit is contained in:
janwas
2010-11-01 11:09:03 +00:00
parent b27d6d38e3
commit 52851faeb6
23 changed files with 38 additions and 82 deletions
+1 -2
View File
@@ -28,7 +28,6 @@
#include "lib/allocators/string_pool.h"
#include "lib/rand.h"
#include "lib/sysdep/cpu.h" // cpu_memcpy
StringPool::StringPool(size_t maxSize)
@@ -63,7 +62,7 @@ const char* StringPool::UniqueCopy(const char* string)
char* uniqueCopy = (char*)pool_alloc(&m_pool, length+1);
if(!uniqueCopy)
throw std::bad_alloc();
cpu_memcpy((void*)uniqueCopy, string, length);
memcpy((void*)uniqueCopy, string, length);
uniqueCopy[length] = '\0';
m_map.insert(uniqueCopy, uniqueCopy);