This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Remove unused struct in char_traits.h
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 21 Aug 2004 16:44:24 +0200
- Subject: [v3] Remove unused struct in char_traits.h
Hi,
tested x86-linux, committed to mainline.
Paolo.
/////////////
2004-08-21 Paolo Carlini <pcarlini@suse.de>
* include/bits/char_traits.h (struct _Char_traits_match): Remove,
unused.
diff -urN libstdc++-v3-orig/include/bits/char_traits.h libstdc++-v3/include/bits/char_traits.h
--- libstdc++-v3-orig/include/bits/char_traits.h 2004-02-08 05:46:40.000000000 +0100
+++ libstdc++-v3/include/bits/char_traits.h 2004-08-21 16:07:46.000000000 +0200
@@ -1,6 +1,6 @@
// Character Traits for use by standard string and iostream -*- C++ -*-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -362,15 +362,6 @@
};
#endif //_GLIBCXX_USE_WCHAR_T
- template<typename _CharT, typename _Traits>
- struct _Char_traits_match
- {
- _CharT _M_c;
- _Char_traits_match(_CharT const& __c) : _M_c(__c) { }
-
- bool
- operator()(_CharT const& __a) { return _Traits::eq(_M_c, __a); }
- };
} // namespace std
#endif