remove some unused code
This commit is contained in:
parent
7c32b9c5fc
commit
ef1dfdee33
@ -878,34 +878,10 @@ namespace cxxopts
|
|||||||
return m_value->has_arg();
|
return m_value->has_arg();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
parse(const std::string& text)
|
|
||||||
{
|
|
||||||
m_value->parse(text);
|
|
||||||
++m_count;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
parse_default()
|
|
||||||
{
|
|
||||||
m_value->parse();
|
|
||||||
}
|
|
||||||
|
|
||||||
const Value& value() const {
|
const Value& value() const {
|
||||||
return *m_value;
|
return *m_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
const T&
|
|
||||||
as() const
|
|
||||||
{
|
|
||||||
#ifdef CXXOPTS_NO_RTTI
|
|
||||||
return static_cast<const values::standard_value<T>&>(*m_value).get();
|
|
||||||
#else
|
|
||||||
return dynamic_cast<const values::standard_value<T>&>(*m_value).get();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
std::shared_ptr<Value>
|
std::shared_ptr<Value>
|
||||||
make_storage() const
|
make_storage() const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user