Skip to content
Snippets Groups Projects
Commit 8ec39dc1 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Remove deprecated method in GraphPathValidation

parent 65cc6e53
No related branches found
No related tags found
No related merge requests found
...@@ -48,29 +48,6 @@ namespace hpp { ...@@ -48,29 +48,6 @@ namespace hpp {
class HPP_MANIPULATION_DLLAPI GraphPathValidation : public PathValidation class HPP_MANIPULATION_DLLAPI GraphPathValidation : public PathValidation
{ {
public: public:
/// Check that the path is valid regarding the constraint graph and call
/// the encapsulated PathValidation::validate.
/// \deprecated Use the method that takes as input a reference to a
/// ValidationReportPtr_t instead.
bool validate (const PathPtr_t& path, bool reverse,
PathPtr_t& validPart) HPP_MANIPULATION_DEPRECATED;
/// Call the GraphPathValidation::validate without validation report.
///
/// \param path the path to check for validity,
/// \param reverse if true check from the end,
/// \retval the extracted valid part of the path, pointer to path if
/// path is valid,
/// \retval report information about the validation process. unused in
/// this case,
/// \return whether the whole path is valid.
/// \deprecated Use the method that takes as input a reference to a
/// ValidationReportPtr_t instead.
virtual bool validate (const PathPtr_t& path, bool reverse,
PathPtr_t& validPart,
ValidationReport& report)
HPP_MANIPULATION_DEPRECATED;
/// Check that path is valid regarding the constraint graph. /// Check that path is valid regarding the constraint graph.
/// ///
/// \param path the path to check for validity, /// \param path the path to check for validity,
......
...@@ -30,11 +30,11 @@ namespace hpp { ...@@ -30,11 +30,11 @@ namespace hpp {
pathValidation_ (pathValidation), constraintGraph_ () pathValidation_ (pathValidation), constraintGraph_ ()
{} {}
bool GraphPathValidation::validate ( bool GraphPathValidation::validate (const PathPtr_t& path, bool reverse,
const PathPtr_t& path, bool reverse, PathPtr_t& validPart) PathPtr_t& validPart,
PathValidationReportPtr_t& report)
{ {
assert (path); assert (path);
PathValidationReportPtr_t report;
bool success = impl_validate (path, reverse, validPart, report); bool success = impl_validate (path, reverse, validPart, report);
assert (constraintGraph_); assert (constraintGraph_);
assert (constraintGraph_->getNode (validPart->initial ())); assert (constraintGraph_->getNode (validPart->initial ()));
...@@ -42,23 +42,6 @@ namespace hpp { ...@@ -42,23 +42,6 @@ namespace hpp {
return success; return success;
} }
bool GraphPathValidation::validate
(const PathPtr_t& path, bool reverse, PathPtr_t& validPart,
ValidationReport&)
{
assert (path);
PathValidationReportPtr_t report;
return impl_validate (path, reverse, validPart, report);
}
bool GraphPathValidation::validate (const PathPtr_t& path, bool reverse,
PathPtr_t& validPart,
PathValidationReportPtr_t& report)
{
assert (path);
return impl_validate (path, reverse, validPart, report);
}
bool GraphPathValidation::impl_validate (const PathVectorPtr_t& path, bool GraphPathValidation::impl_validate (const PathVectorPtr_t& path,
bool reverse, PathPtr_t& validPart, PathValidationReportPtr_t& report) bool reverse, PathPtr_t& validPart, PathValidationReportPtr_t& report)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment