mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-24 00:12:33 +00:00
cleanup - remove old cpu_memcpy and cpu_i64FromDouble that are no longer needed
This was SVN commit r8517.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user