Removed the dependency on realloc functionality

This commit is contained in:
Jim Tilander
2015-01-31 16:17:39 -08:00
parent 3f6091b26b
commit 98e71afa72
2 changed files with 8 additions and 11 deletions

View File

@ -537,7 +537,6 @@ ImGuiIO::ImGuiIO()
// User functions
RenderDrawListsFn = NULL;
MemAllocFn = malloc;
MemReallocFn = realloc;
MemFreeFn = free;
GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations
SetClipboardTextFn = SetClipboardTextFn_DefaultImpl;
@ -1479,11 +1478,6 @@ void ImGui::MemFree(void* ptr)
{
return GImGui.IO.MemFreeFn(ptr);
}
void* ImGui::MemRealloc(void* ptr, size_t sz)
{
return GImGui.IO.MemReallocFn(ptr, sz);
}
static ImGuiIniData* FindWindowSettings(const char* name)
{