redundant code ( moveBack is simple call of move on same solution)
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2289 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
254eb4c0ab
commit
77f5ba7174
1 changed files with 1 additions and 8 deletions
|
|
@ -74,15 +74,8 @@ public:
|
||||||
* @param _solution the solution to move back
|
* @param _solution the solution to move back
|
||||||
*/
|
*/
|
||||||
virtual void moveBack(EOT& _solution) {
|
virtual void moveBack(EOT& _solution) {
|
||||||
unsigned int tmp;
|
|
||||||
unsigned i, j;
|
|
||||||
this->getIndices(_solution.size(), i, j);
|
|
||||||
|
|
||||||
tmp = _solution[i];
|
move(_solution);
|
||||||
_solution[i] = _solution[j];
|
|
||||||
_solution[j] = tmp;
|
|
||||||
|
|
||||||
_solution.invalidate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue