aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Edwards <pme@gcc.gnu.org>2003-01-16 03:11:13 +0000
committerPhil Edwards <pme@gcc.gnu.org>2003-01-16 03:11:13 +0000
commit25ad7e06c6f3fea909588d4b2772bde6fd50b4c9 (patch)
treecd4d3acbe7adb0699edff18805cf77322b3a26fe
parent77480b0beabae22664e1f226d3343ef8e0bddbcf (diff)
downloadgcc-25ad7e06c6f3fea909588d4b2772bde6fd50b4c9.zip
gcc-25ad7e06c6f3fea909588d4b2772bde6fd50b4c9.tar.gz
gcc-25ad7e06c6f3fea909588d4b2772bde6fd50b4c9.tar.bz2
basic_string.tcc (_S_string_copy): Unused, remove.
2003-01-15 Phil Edwards <pme@gcc.gnu.org> * include/bits/basic_string.tcc (_S_string_copy): Unused, remove. From-SVN: r61377
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/bits/basic_string.tcc12
2 files changed, 4 insertions, 12 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 57fde9f..c25586e 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-15 Phil Edwards <pme@gcc.gnu.org>
+
+ * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
+
2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
diff --git a/libstdc++-v3/include/bits/basic_string.tcc b/libstdc++-v3/include/bits/basic_string.tcc
index 70dd991..3810ae1 100644
--- a/libstdc++-v3/include/bits/basic_string.tcc
+++ b/libstdc++-v3/include/bits/basic_string.tcc
@@ -930,18 +930,6 @@ namespace std
return __r;
}
- template <class _CharT, class _Traits, class _Alloc>
- void
- _S_string_copy(const basic_string<_CharT, _Traits, _Alloc>& __str,
- _CharT* __buf, typename _Alloc::size_type __bufsiz)
- {
- typedef typename _Alloc::size_type size_type;
- size_type __strsize = __str.size();
- size_type __bytes = std::min(__strsize, __bufsiz - 1);
- _Traits::copy(__buf, __str.data(), __bytes);
- __buf[__bytes] = _CharT();
- }
-
// Inhibit implicit instantiations for required instantiations,
// which are defined via explicit instantiations elsewhere.
// NB: This syntax is a GNU extension.