+ removed data() function
This commit is contained in:
parent
515d731fd4
commit
a8c4f84fb8
4 changed files with 21 additions and 42 deletions
13
src/JSON.cc
13
src/JSON.cc
|
@ -1224,19 +1224,6 @@ JSON::const_iterator JSON::find(const char* key) const
|
|||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
@return the payload of the JSON object.
|
||||
*/
|
||||
JSON::value JSON::data() noexcept
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
|
||||
const JSON::value JSON::data() const noexcept
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
|
||||
bool JSON::operator==(const JSON& o) const noexcept
|
||||
{
|
||||
switch (_type)
|
||||
|
|
|
@ -279,11 +279,6 @@ class JSON
|
|||
/// find an element in an object (returns end() iterator otherwise)
|
||||
const_iterator find(const char*) const;
|
||||
|
||||
/// direct access to the underlying payload
|
||||
value data() noexcept;
|
||||
/// direct access to the underlying payload
|
||||
const value data() const noexcept;
|
||||
|
||||
/// lexicographically compares the values
|
||||
bool operator==(const JSON&) const noexcept;
|
||||
/// lexicographically compares the values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue