Skip to content

Commit

Permalink
Remove unused TfIdentity
Browse files Browse the repository at this point in the history
Fixes #2217

(Internal change: 2268182)
  • Loading branch information
gitamohr authored and pixar-oss committed Mar 21, 2023
1 parent 0722c3d commit 8dba2ed
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pxr/base/tf/stl.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
#include "pxr/base/tf/hashset.h"
#include "pxr/base/tf/iterator.h"

#include <boost/call_traits.hpp>

#include <algorithm>
#include <iterator>
#include <map>
Expand Down Expand Up @@ -223,17 +221,6 @@ inline void TfReset(TfHashSet<Value, Hash, Equal, Alloc> &hash) {
hash.clear();
}


/// An unary function that represents the identity function; it takes a single
/// argument \a arg, and returns \a arg.
///
/// This is similar to the sgi extension std::identity<T>.
template <class T>
inline typename boost::call_traits<T>::param_type
TfIdentity(typename boost::call_traits<T>::param_type arg) {
return arg;
}

/// Produce a sequence consisting of the set difference of [\a first1, \a
/// last1) and [\a first2, \a last2), while maintaining the relative order of
/// the first sequence. No particular order is required for either range, but
Expand Down

0 comments on commit 8dba2ed

Please sign in to comment.