mirror of
https://github.com/jarro2783/cxxopts.git
synced 2026-09-02 02:58:27 +02:00
remove some unused code
This commit is contained in:
@@ -878,34 +878,10 @@ namespace cxxopts
|
||||
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 {
|
||||
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>
|
||||
make_storage() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user