diff options
author | Jim Meyering <meyering@redhat.com> | 2012-02-03 16:11:53 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-02-03 16:44:36 +0100 |
commit | f1c2c13374c6cd2448f4d9d38d101d80b169dfb9 (patch) | |
tree | 409f4156e98046a4b357c4f8a38f766da397c305 /libparted/libparted.c | |
parent | c56edfb7b98593282dc1db1c3912616a470257b2 (diff) | |
download | parted-f1c2c13374c6cd2448f4d9d38d101d80b169dfb9.tar.gz |
libparted: remove ped_realloc, now unused
* include/parted/parted.in.h (ped_realloc): Remove declaration.
* libparted/libparted.c (ped_realloc): Remove definition.
Diffstat (limited to 'libparted/libparted.c')
-rw-r--r-- | libparted/libparted.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libparted/libparted.c b/libparted/libparted.c index 627bc82..a6d86f0 100644 --- a/libparted/libparted.c +++ b/libparted/libparted.c @@ -234,21 +234,6 @@ ped_malloc (size_t size) return mem; } -int -ped_realloc (void** old, size_t size) -{ - void* mem; - - mem = (void*) realloc (*old, size); - if (!mem) { - ped_exception_throw (PED_EXCEPTION_FATAL, PED_EXCEPTION_CANCEL, - _("Out of memory.")); - return 0; - } - *old = mem; - return 1; -} - void* ped_calloc (size_t size) { |