Commit 07f9c324 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Remove ProblemSolver::latest.

parent f2208652
...@@ -70,9 +70,6 @@ namespace hpp { ...@@ -70,9 +70,6 @@ namespace hpp {
/// Create instance and return pointer /// Create instance and return pointer
static ProblemSolverPtr_t create (); static ProblemSolverPtr_t create ();
/// Return latest instance created by method create.
static ProblemSolverPtr_t latest ();
/// Destructor /// Destructor
virtual ~ProblemSolver (); virtual ~ProblemSolver ();
...@@ -585,8 +582,7 @@ namespace hpp { ...@@ -585,8 +582,7 @@ namespace hpp {
protected: protected:
/// Constructor /// Constructor
/// ///
/// Call create to create an instance. The latest created instance can /// Call create to create an instance.
/// be retrieved by method latest.
ProblemSolver (); ProblemSolver ();
/// Store constraints until call to solve. /// Store constraints until call to solve.
...@@ -665,8 +661,6 @@ namespace hpp { ...@@ -665,8 +661,6 @@ namespace hpp {
CenterOfMassComputationMap_t comcMap_; CenterOfMassComputationMap_t comcMap_;
/// Computation of distances to obstacles /// Computation of distances to obstacles
DistanceBetweenObjectsPtr_t distanceBetweenObjects_; DistanceBetweenObjectsPtr_t distanceBetweenObjects_;
/// Store latest instance created by static method create
static ProblemSolverPtr_t latest_;
void initProblem (); void initProblem ();
}; // class ProblemSolver }; // class ProblemSolver
......
...@@ -169,16 +169,9 @@ namespace hpp { ...@@ -169,16 +169,9 @@ namespace hpp {
return ptr; return ptr;
} }
ProblemSolverPtr_t ProblemSolver::latest_ = 0x0;
ProblemSolverPtr_t ProblemSolver::create () ProblemSolverPtr_t ProblemSolver::create ()
{ {
latest_ = new ProblemSolver (); return new ProblemSolver ();
return latest_;
}
ProblemSolverPtr_t ProblemSolver::latest ()
{
return latest_;
} }
ProblemSolver::ProblemSolver () : ProblemSolver::ProblemSolver () :
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment