Remove CDS_CXX11_LAMBDA_SUPPORT macro and a lot of emulating code
[libcds.git] / cds / intrusive / michael_list_impl.h
index 83160c5fc4c1434347b6d44920af771a025b903f..fa8e1cb0c1fc527a98681a40b81f81078b78ebaf 100644 (file)
@@ -239,13 +239,6 @@ namespace cds { namespace intrusive {
             };
         };
 
-#   ifndef CDS_CXX11_LAMBDA_SUPPORT
-        struct empty_erase_functor {
-            void operator()( value_type const & item )
-            {}
-        };
-#   endif
-
         struct clean_disposer {
             void operator()( value_type * p )
             {
@@ -1043,11 +1036,7 @@ namespace cds { namespace intrusive {
         bool erase_at( atomic_node_ptr& refHead, Q const& val, Compare cmp )
         {
             position pos;
-#       ifdef CDS_CXX11_LAMBDA_SUPPORT
             return erase_at( refHead, val, cmp, [](value_type const&){}, pos );
-#       else
-            return erase_at( refHead, val, cmp, empty_erase_functor(), pos );
-#       endif
         }
 
         template <typename Q, typename Compare>