Skip to content

Commit

Permalink
chore: remove unused logic
Browse files Browse the repository at this point in the history
  • Loading branch information
phc1990 committed Aug 13, 2024
1 parent 67aa56b commit b028f73
Showing 1 changed file with 0 additions and 64 deletions.
64 changes: 0 additions & 64 deletions src/OpenSpaceToolkit/Mathematics/Object/Interval.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,70 +579,6 @@ bool Interval<T>::checkAgainstUpperBound(const T& aValue, const bool& isOpen, co
}
}

// template <class T>
// bool Interval<T>::containsLowerBound(const Interval& anInterval) const
// {
// switch (type_)
// {
// case Interval<T>::Type::Closed:
// case Interval<T>::Type::HalfOpenRight:
// return lowerBound_ <= anInterval.lowerBound_;

// case Interval<T>::Type::HalfOpenLeft:
// case Interval<T>::Type::Open:
// switch (type_)
// {
// case Interval<T>::Type::Closed:
// case Interval<T>::Type::HalfOpenRight:
// return lowerBound_ < anInterval.lowerBound_;

// case Interval<T>::Type::HalfOpenLeft:
// case Interval<T>::Type::Open:
// return lowerBound_ <= anInterval.lowerBound_;

// default:
// throw ostk::core::error::runtime::Wrong("Type");
// break;
// }

// default:
// throw ostk::core::error::runtime::Wrong("Type");
// break;
// }
// }

// template <class T>
// bool Interval<T>::containsUpperBound(const Interval& anInterval) const
// {
// switch (type_)
// {
// case Interval<T>::Type::Closed:
// case Interval<T>::Type::HalfOpenLeft:
// return upperBound_ >= anInterval.upperBound_;

// case Interval<T>::Type::HalfOpenRight:
// case Interval<T>::Type::Open:
// switch (type_)
// {
// case Interval<T>::Type::Closed:
// case Interval<T>::Type::HalfOpenLeft:
// return upperBound_ > anInterval.upperBound_;

// case Interval<T>::Type::HalfOpenRight:
// case Interval<T>::Type::Open:
// return upperBound_ >= anInterval.upperBound_;

// default:
// throw ostk::core::error::runtime::Wrong("Type");
// break;
// }

// default:
// throw ostk::core::error::runtime::Wrong("Type");
// break;
// }
// }

} // namespace object
} // namespace mathematics
} // namespace ostk

0 comments on commit b028f73

Please sign in to comment.