foxygit / doom Log in
commit 435bf4b11a48a1f33dc42a4f7a0a1d216f527301
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Wed Aug 23 09:00:37 2017 +0200
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed Aug 23 09:00:37 2017 +0200

    Remove duplicate I_Realloc() definition

    It somehow got there by cherry-picking the changes from the i_realloc
    branch into the master branch and then merging the master branch into
    the sdl2-branch. Sorry for the confusion.
---
 src/i_system.c | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/src/i_system.c b/src/i_system.c
index 2796ab76..7cb55c4c 100644
--- a/src/i_system.c
+++ b/src/i_system.c
@@ -341,24 +341,6 @@ void *I_Realloc(void *ptr, size_t size)
     return new_ptr;
 }

-//
-// I_Realloc
-//
-
-void *I_Realloc(void *ptr, size_t size)
-{
-    void *new_ptr;
-
-    new_ptr = realloc(ptr, size);
-
-    if (size != 0 && new_ptr == NULL)
-    {
-        I_Error ("I_Realloc: failed on reallocation of %i bytes", size);
-    }
-
-    return new_ptr;
-}
-
 //
 // Read Access Violation emulation.
 //