From f2485c611d80e9c650575f0af0abb6e86bc2c7b0 Mon Sep 17 00:00:00 2001 From: khizmax Date: Tue, 11 Nov 2014 21:38:58 +0300 Subject: [PATCH] remove unused code --- cds/details/allocator.h | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/cds/details/allocator.h b/cds/details/allocator.h index 9936cdac..ce4cb7a5 100644 --- a/cds/details/allocator.h +++ b/cds/details/allocator.h @@ -3,18 +3,10 @@ #ifndef __CDS_DETAILS_ALLOCATOR_H #define __CDS_DETAILS_ALLOCATOR_H -/* - Allocator class for the library. Supports allocating and constructing of objects - - Editions: - 2008.03.08 Maxim.Khiszinsky Created -*/ - #include #include #include #include -#include namespace cds { namespace details { @@ -156,31 +148,6 @@ namespace cds { //@endcond }; - //@cond - namespace { - template - static inline void impl_call_dtor(T* p, boost::false_type const&) - { - p->T::~T(); - } - - template - static inline void impl_call_dtor(T* p, boost::true_type const&) - {} - } - //@endcond - - /// Helper function to call destructor of type T - /** - This function is empty for the type T that has trivial destructor. - */ - template - static inline void call_dtor( T* p ) - { - impl_call_dtor( p, ::boost::has_trivial_destructor() ); - } - - /// Deferral removing of the object of type \p T. Helper class template struct deferral_deleter { -- 2.34.1