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

Remove ProblemSolver::latest.

parent f2208652
......@@ -70,9 +70,6 @@ namespace hpp {
/// Create instance and return pointer
static ProblemSolverPtr_t create ();
/// Return latest instance created by method create.
static ProblemSolverPtr_t latest ();
/// Destructor
virtual ~ProblemSolver ();
......@@ -585,8 +582,7 @@ namespace hpp {
protected:
/// Constructor
///
/// Call create to create an instance. The latest created instance can
/// be retrieved by method latest.
/// Call create to create an instance.
ProblemSolver ();
/// Store constraints until call to solve.
......@@ -665,8 +661,6 @@ namespace hpp {
CenterOfMassComputationMap_t comcMap_;
/// Computation of distances to obstacles
DistanceBetweenObjectsPtr_t distanceBetweenObjects_;
/// Store latest instance created by static method create
static ProblemSolverPtr_t latest_;
void initProblem ();
}; // class ProblemSolver
......
......@@ -169,16 +169,9 @@ namespace hpp {
return ptr;
}
ProblemSolverPtr_t ProblemSolver::latest_ = 0x0;
ProblemSolverPtr_t ProblemSolver::create ()
{
latest_ = new ProblemSolver ();
return latest_;
}
ProblemSolverPtr_t ProblemSolver::latest ()
{
return latest_;
return new ProblemSolver ();
}
ProblemSolver::ProblemSolver () :
......
Markdown is supported
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