json: rm dead code
This commit is contained in:
parent
64e305901e
commit
ba90d5b7e7
1 changed files with 0 additions and 15 deletions
|
@ -53,21 +53,6 @@ static std::string build_repetition(const std::string & item_rule, int min_items
|
||||||
res += repeat(")?", up_to_n);
|
res += repeat(")?", up_to_n);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (up_to_n == 0) {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string res;
|
|
||||||
if (!separator_rule.empty() && prefix_with_sep) {
|
|
||||||
res = separator_rule + " " + item_rule;
|
|
||||||
} else {
|
|
||||||
res = item_rule;
|
|
||||||
}
|
|
||||||
if (up_to_n > 1) {
|
|
||||||
res += " " + opt_repetitions(up_to_n - 1, true);
|
|
||||||
}
|
|
||||||
return "(" + res + ")?";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (min_items > 0 && max_items != min_items) {
|
if (min_items > 0 && max_items != min_items) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue