summaryrefslogtreecommitdiff
path: root/libparted/libparted.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-02-03 16:11:53 +0100
committerJim Meyering <meyering@redhat.com>2012-02-03 16:44:36 +0100
commitf1c2c13374c6cd2448f4d9d38d101d80b169dfb9 (patch)
tree409f4156e98046a4b357c4f8a38f766da397c305 /libparted/libparted.c
parentc56edfb7b98593282dc1db1c3912616a470257b2 (diff)
downloadparted-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.c15
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)
{