Revision
142
Author
robert@fledge.watson.org
Date
2009-11-06 14:41:12 -0800 (Fri, 06 Nov 2009)

Log Message

Remove the unused malloc_zone_memalign() shim, which depends on the
posix_memalign() API, which is not present on Solaris.

Discovered by:	Joakim Johansson <jocke@tbricks.com>

Modified Paths

Diff

Modified: trunk/src/shims/malloc_zone.h (141 => 142)


--- trunk/src/shims/malloc_zone.h	2009-11-06 22:28:01 UTC (rev 141)
+++ trunk/src/shims/malloc_zone.h	2009-11-06 22:41:12 UTC (rev 142)
@@ -80,16 +80,6 @@
 	return (realloc(ptr, size));
 }
 
-static inline void *
-malloc_zone_memalign(malloc_zone_t *zone, size_t alignment, size_t size)
-{
-	void *ptr;
-
-	if (posix_memalign(&ptr, alignment, size) < 0)
-		return (NULL);
-	return (ptr);
-}
-
 static inline void
 malloc_zone_free(malloc_zone_t *zone, void *ptr)
 {