[PPL-devel] [GIT] ppl/ppl(master): Dense_Row: remove the unused assign() method.
Marco Poletti
poletti.marco at gmail.com
Sun Oct 17 08:21:12 CEST 2010
Module: ppl/ppl
Branch: master
Commit: 78ef497331ef00e045da0428105fdfae47165cf3
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=78ef497331ef00e045da0428105fdfae47165cf3
Author: Marco Poletti <poletti.marco at gmail.com>
Date: Sun Oct 17 08:17:46 2010 +0200
Dense_Row: remove the unused assign() method.
---
src/Dense_Row.defs.hh | 7 -------
src/Dense_Row.inlines.hh | 8 --------
2 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/src/Dense_Row.defs.hh b/src/Dense_Row.defs.hh
index df97808..e991de6 100644
--- a/src/Dense_Row.defs.hh
+++ b/src/Dense_Row.defs.hh
@@ -179,13 +179,6 @@ public:
//! Swaps \p *this with \p y.
void swap(Dense_Row& y);
- //! Assigns the implementation of \p y to \p *this.
- /*!
- To be used with extra care, since it may easily cause memory leaks
- or undefined behavior.
- */
- void assign(Dense_Row& y);
-
/*! \brief
Allocates memory for a default constructed Dense_Row object, setting
flags to \p f and allowing for \p capacity coefficients at most.
diff --git a/src/Dense_Row.inlines.hh b/src/Dense_Row.inlines.hh
index e6b6f35..ca7ae9d 100644
--- a/src/Dense_Row.inlines.hh
+++ b/src/Dense_Row.inlines.hh
@@ -283,14 +283,6 @@ Dense_Row::swap(Dense_Row& y) {
#endif
}
-inline void
-Dense_Row::assign(Dense_Row& y) {
- impl = y.impl;
-#if PPL_DENSE_ROW_EXTRA_DEBUG
- capacity_ = y.capacity_;
-#endif
-}
-
inline Dense_Row&
Dense_Row::operator=(const Dense_Row& y) {
// Copy-construct `tmp' from `y'.
More information about the PPL-devel
mailing list