summaryrefslogtreecommitdiff
path: root/ace/Malloc.i
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Malloc.i')
-rw-r--r--ace/Malloc.i110
1 files changed, 0 insertions, 110 deletions
diff --git a/ace/Malloc.i b/ace/Malloc.i
deleted file mode 100644
index 2b342124313..00000000000
--- a/ace/Malloc.i
+++ /dev/null
@@ -1,110 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-// Malloc.i
-
-ACE_INLINE void *
-ACE_New_Allocator::malloc (size_t nbytes)
-{
- char *ptr = 0;
-
- if (nbytes > 0)
- ACE_NEW_RETURN (ptr, char[nbytes], 0);
- return (void *) ptr;
-}
-
-ACE_INLINE void *
-ACE_New_Allocator::calloc (size_t nbytes,
- char initial_value)
-{
- char *ptr;
-
- ACE_NEW_RETURN (ptr, char[nbytes], 0);
-
- ACE_OS::memset (ptr, initial_value, nbytes);
- return (void *) ptr;
-}
-
-ACE_INLINE void
-ACE_New_Allocator::free (void *ptr)
-{
- delete [] (char *) ptr;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::remove (void)
-{
- return -1;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::bind (const char *, void *, int)
-{
- return -1;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::trybind (const char *, void *&)
-{
- return -1;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::find (const char *, void *&)
-{
- return -1;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::find (const char *)
-{
- return -1;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::unbind (const char *)
-{
- return -1;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::unbind (const char *, void *&)
-{
- return -1;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::sync (ssize_t, int)
-{
- return -1;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::sync (void *, size_t, int)
-{
- return -1;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::protect (ssize_t, int)
-{
- return -1;
-}
-
-ACE_INLINE int
-ACE_New_Allocator::protect (void *, size_t, int)
-{
- return -1;
-}
-
-#if defined (ACE_HAS_MALLOC_STATS)
-ACE_INLINE void
-ACE_New_Allocator::print_stats (void) const
-{
-}
-#endif /* ACE_HAS_MALLOC_STATS */
-
-ACE_INLINE void
-ACE_New_Allocator::dump (void) const
-{
-}