vector.tcc (vector::_M_insert_aux(iterator)): Remove, unused.
authorPaolo Carlini <pcarlini@suse.de>
Sun, 1 Feb 2004 22:14:43 +0000 (22:14 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 1 Feb 2004 22:14:43 +0000 (22:14 +0000)
2004-02-01  Paolo Carlini  <pcarlini@suse.de>

* include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
Remove, unused.

From-SVN: r77081

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

index a8bdc2678963889e673ed5dac648205db748840e..cef5af5e698ed0c8dce3de77abc717bc0f825c63 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-01  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
+       Remove, unused.
+
 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/stl_function.h: Additional minor tweaks.
index caa27620ae598a700242ff8c13bdb0342ef1025d..ee7e85c5198b994b6b18cfda8dd718d40963e16f 100644 (file)
@@ -268,51 +268,7 @@ namespace __gnu_norm
         this->_M_end_of_storage = __new_start.base() + __len;
       }
     }
-  
-  #ifdef _GLIBCXX_DEPRECATED
-  template<typename _Tp, typename _Alloc>
-    void
-    vector<_Tp,_Alloc>::
-    _M_insert_aux(iterator __position)
-    {
-      if (_M_finish != _M_end_of_storage)
-      {
-        std::_Construct(_M_finish, *(_M_finish - 1));
-        ++_M_finish;
-        std::copy_backward(__position, iterator(_M_finish - 2),
-                          iterator(_M_finish - 1));
-        *__position = value_type();
-      }
-      else
-      {
-        const size_type __old_size = size();
-        const size_type __len = __old_size != 0 ? 2 * __old_size : 1;
-        pointer __new_start = _M_allocate(__len);
-        pointer __new_finish = __new_start;
-        try
-          {
-            __new_finish = std::uninitialized_copy(iterator(_M_start), __position,
-                                                  __new_start);
-            std::_Construct(__new_finish);
-            ++__new_finish;
-            __new_finish = std::uninitialized_copy(__position, iterator(_M_finish),
-                                                  __new_finish);
-          }
-        catch(...)
-          {
-            std::_Destroy(__new_start,__new_finish);
-            _M_deallocate(__new_start,__len);
-            __throw_exception_again;
-          }
-        std::_Destroy(begin(), end());
-        _M_deallocate(_M_start, _M_end_of_storage - _M_start);
-        _M_start = __new_start;
-        _M_finish = __new_finish;
-        _M_end_of_storage = __new_start + __len;
-      }
-    }
-  #endif
-  
+
   template<typename _Tp, typename _Alloc>
     void
     vector<_Tp,_Alloc>::