]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
basic_string.tcc (_S_string_copy): Unused, remove.
authorPhil Edwards <pme@gcc.gnu.org>
Thu, 16 Jan 2003 03:11:13 +0000 (03:11 +0000)
committerPhil Edwards <pme@gcc.gnu.org>
Thu, 16 Jan 2003 03:11:13 +0000 (03:11 +0000)
2003-01-15  Phil Edwards  <pme@gcc.gnu.org>

* include/bits/basic_string.tcc (_S_string_copy): Unused, remove.

From-SVN: r61377

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.tcc

index 57fde9f715c7c27497e4c5fe396ce61e4f886e88..c25586edf8d92a6907bb1f09805cd0691990deca 100644 (file)
@@ -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
index 70dd991ea3eb80c98f7fee10a100702f36ea06f5..3810ae1cd8b5fcea4d8fe05c8b5a407a51357827 100644 (file)
@@ -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.