diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2015-05-11 18:12:03 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2015-05-11 19:00:15 +0300 |
commit | 28272d58b8ca59f88703e8911d84bfc98f558f99 (patch) | |
tree | 0636acb2b5a792c2dc0c3d293472df13d43c8b6e /gc_cpp.cc | |
parent | 3d784edf71be4d0eb24db3b003a906b63be6aa7a (diff) | |
download | bdwgc-28272d58b8ca59f88703e8911d84bfc98f558f99.tar.gz |
Remove commented out code in gc_cpp.cc/h
(code refactoring)
* gc_cpp.cc: Remove commented out code.
* include/gc_cpp.h: Likewise.
Conflicts:
gc_cpp.cc
include/gc_cpp.h
Diffstat (limited to 'gc_cpp.cc')
-rw-r--r-- | gc_cpp.cc | 42 |
1 files changed, 0 insertions, 42 deletions
@@ -42,45 +42,3 @@ built-in "new" and "delete". # define GC_DECL_NEW_THROW /* empty */ # define GC_DECL_DELETE_THROW /* empty */ #endif /* !GC_NEW_DELETE_NEED_THROW */ - -// MOVED TO HEADER! -//void* operator new( size_t size ) { -// return GC_MALLOC_UNCOLLECTABLE( size );} -// -//void operator delete( void* obj ) { -// GC_FREE( obj );} -// -//#ifdef GC_OPERATOR_NEW_ARRAY -// -//void* operator new[]( size_t size ) { -// return GC_MALLOC_UNCOLLECTABLE( size );} -// -//void operator delete[]( void* obj ) { -// GC_FREE( obj );} -// -//#endif /* GC_OPERATOR_NEW_ARRAY */ -// -//#ifdef _MSC_VER -// -//// This new operator is used by VC++ in case of Debug builds ! -//void* operator new( size_t size, -// int ,//nBlockUse, -// const char * szFileName, -// int nLine ) -//{ -//#ifndef GC_DEBUG -// return GC_malloc_uncollectable( size ); -//#else -// return GC_debug_malloc_uncollectable(size, szFileName, nLine); -//#endif -//} -// -//#if _MSC_VER > 1020 -//// This new operator is used by VC++ 7.0 and later in Debug builds. -//void* operator new[](size_t size, int nBlockUse, const char* szFileName, int nLine) -//{ -// return operator new(size, nBlockUse, szFileName, nLine); -//} -//#endif -// -//#endif /* _MSC_VER */ |