unused var

This commit is contained in:
Doug Hoyte
2023-02-05 15:55:31 -05:00
parent 2c86254fb9
commit b3109d3e57

View File

@ -23,14 +23,11 @@ struct FilterSetBytes {
std::vector<std::string> arr;
uint64_t totalSize = 0;
for (const auto &i : arrHex.get_array()) {
arr.emplace_back(hexDecode ? from_hex(i.get_string(), false) : i.get_string());
size_t itemSize = arr.back().size();
if (itemSize < minSize) throw herr("filter item too small");
if (itemSize > maxSize) throw herr("filter item too large");
totalSize += itemSize;
}
std::sort(arr.begin(), arr.end());