Skip to content

Commit 1b4ea8f

Browse files
authored
Merge pull request nlohmann#2224 from nlohmann/issue2221
Remove unused typedefs
2 parents 5ba0f65 + fa9f404 commit 1b4ea8f

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

include/nlohmann/detail/json_pointer.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ class json_pointer
398398
*/
399399
BasicJsonType& get_and_create(BasicJsonType& j) const
400400
{
401-
using size_type = typename BasicJsonType::size_type;
402401
auto result = &j;
403402

404403
// in case no reference tokens exist, return a reference to the JSON value
@@ -471,7 +470,6 @@ class json_pointer
471470
*/
472471
BasicJsonType& get_unchecked(BasicJsonType* ptr) const
473472
{
474-
using size_type = typename BasicJsonType::size_type;
475473
for (const auto& reference_token : reference_tokens)
476474
{
477475
// convert null values to arrays or objects before continuing
@@ -531,7 +529,6 @@ class json_pointer
531529
*/
532530
BasicJsonType& get_checked(BasicJsonType* ptr) const
533531
{
534-
using size_type = typename BasicJsonType::size_type;
535532
for (const auto& reference_token : reference_tokens)
536533
{
537534
switch (ptr->type())
@@ -581,7 +578,6 @@ class json_pointer
581578
*/
582579
const BasicJsonType& get_unchecked(const BasicJsonType* ptr) const
583580
{
584-
using size_type = typename BasicJsonType::size_type;
585581
for (const auto& reference_token : reference_tokens)
586582
{
587583
switch (ptr->type())
@@ -624,7 +620,6 @@ class json_pointer
624620
*/
625621
const BasicJsonType& get_checked(const BasicJsonType* ptr) const
626622
{
627-
using size_type = typename BasicJsonType::size_type;
628623
for (const auto& reference_token : reference_tokens)
629624
{
630625
switch (ptr->type())
@@ -665,7 +660,6 @@ class json_pointer
665660
*/
666661
bool contains(const BasicJsonType* ptr) const
667662
{
668-
using size_type = typename BasicJsonType::size_type;
669663
for (const auto& reference_token : reference_tokens)
670664
{
671665
switch (ptr->type())

single_include/nlohmann/json.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11529,7 +11529,6 @@ class json_pointer
1152911529
*/
1153011530
BasicJsonType& get_and_create(BasicJsonType& j) const
1153111531
{
11532-
using size_type = typename BasicJsonType::size_type;
1153311532
auto result = &j;
1153411533

1153511534
// in case no reference tokens exist, return a reference to the JSON value
@@ -11602,7 +11601,6 @@ class json_pointer
1160211601
*/
1160311602
BasicJsonType& get_unchecked(BasicJsonType* ptr) const
1160411603
{
11605-
using size_type = typename BasicJsonType::size_type;
1160611604
for (const auto& reference_token : reference_tokens)
1160711605
{
1160811606
// convert null values to arrays or objects before continuing
@@ -11662,7 +11660,6 @@ class json_pointer
1166211660
*/
1166311661
BasicJsonType& get_checked(BasicJsonType* ptr) const
1166411662
{
11665-
using size_type = typename BasicJsonType::size_type;
1166611663
for (const auto& reference_token : reference_tokens)
1166711664
{
1166811665
switch (ptr->type())
@@ -11712,7 +11709,6 @@ class json_pointer
1171211709
*/
1171311710
const BasicJsonType& get_unchecked(const BasicJsonType* ptr) const
1171411711
{
11715-
using size_type = typename BasicJsonType::size_type;
1171611712
for (const auto& reference_token : reference_tokens)
1171711713
{
1171811714
switch (ptr->type())
@@ -11755,7 +11751,6 @@ class json_pointer
1175511751
*/
1175611752
const BasicJsonType& get_checked(const BasicJsonType* ptr) const
1175711753
{
11758-
using size_type = typename BasicJsonType::size_type;
1175911754
for (const auto& reference_token : reference_tokens)
1176011755
{
1176111756
switch (ptr->type())
@@ -11796,7 +11791,6 @@ class json_pointer
1179611791
*/
1179711792
bool contains(const BasicJsonType* ptr) const
1179811793
{
11799-
using size_type = typename BasicJsonType::size_type;
1180011794
for (const auto& reference_token : reference_tokens)
1180111795
{
1180211796
switch (ptr->type())

0 commit comments

Comments
 (0)