Commit 675e7536615ffa06afa9109c253b1913619f7128
Committed by
Henry Schreiner
1 parent
2d8d659a
Dropping useless check that could not be tested
Showing
1 changed file
with
0 additions
and
3 deletions
include/CLI/Option.hpp
| ... | ... | @@ -283,9 +283,6 @@ class Option : public OptionBase<Option> { |
| 283 | 283 | ignore_case_ = value; |
| 284 | 284 | auto *parent = dynamic_cast<T *>(parent_); |
| 285 | 285 | |
| 286 | - if(parent == nullptr) | |
| 287 | - throw IncorrectConstruction("This should not happen, there is always a parent!"); | |
| 288 | - | |
| 289 | 286 | for(const Option_p &opt : parent->options_) |
| 290 | 287 | if(opt.get() != this && *opt == *this) |
| 291 | 288 | throw OptionAlreadyAdded(opt->get_name()); | ... | ... |