dbertoni    02/04/05 23:51:56

  Modified:    c/src/Include STLHelper.hpp
  Log:
  Removed unused functor and fixed bad cast.
  
  Revision  Changes    Path
  1.4       +0 -44     xml-xalan/c/src/Include/STLHelper.hpp
  
  Index: STLHelper.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/Include/STLHelper.hpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- STLHelper.hpp     13 Dec 2001 17:21:08 -0000      1.3
  +++ STLHelper.hpp     6 Apr 2002 07:51:56 -0000       1.4
  @@ -212,11 +212,7 @@
        result_type
        operator()(argument_type        thePair) const
        {
  -#if defined(XALAN_CANNOT_DELETE_CONST)
  -             delete (T*)thePair.second;
  -#else
                delete thePair.second;
  -#endif
        }
   };
   
  @@ -227,46 +223,6 @@
   makeMapValueDeleteFunctor(const T&   /* theMap */)
   {
        return MapValueDeleteFunctor<T>();
  -}
  -
  -
  -
  -template <class T>
  -#if defined(XALAN_NO_NAMESPACES)
  -struct MapKeyDeleteFunctor : public unary_function<const typename T::value_type&, 
void>
  -#else
  -struct MapKeyDeleteFunctor : public std::unary_function<const typename 
T::value_type&, void>
  -#endif
  -{
  -#if defined(XALAN_NO_NAMESPACES)
  -     typedef unary_function<const typename T::value_type&, void>             
BaseClassType;
  -#else
  -     typedef std::unary_function<const typename T::value_type&, void>        
BaseClassType;
  -#endif
  -
  -     typedef typename BaseClassType::result_type             result_type;
  -     typedef typename BaseClassType::argument_type   argument_type;
  -
  -     /**
  -      * Delete the value object in a map value pair.  The value of the pair must
  -      * be of pointer type.
  -      *
  -      * @param thePair key-value pair
  -      */
  -     result_type
  -     operator()(argument_type        thePair)
  -     {
  -             delete thePair.first;
  -     }
  -};
  -
  -
  -
  -template<class T>
  -MapKeyDeleteFunctor<T>
  -makeMapKeyDeleteFunctor(const T&     /* theMap */)
  -{
  -     return MapKeyDeleteFunctor<T>();
   }
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to