srctree

Robin Lindén parent 6e3ec85b 17433631
url: Remove trivial private accessor

inlinesplit
url/url.cpp added: 4, removed: 6, total 0
@@ -457,7 +457,7 @@ std::optional<Url> UrlParser::parse_basic(
// This check accomodates the one scenario (commented on in
// state_scheme_start, below) in which the parser position goes
// negative.
if (is_eof() && current_pos() != static_cast<std::size_t>(-1)) {
if (is_eof() && pos_ != static_cast<std::size_t>(-1)) {
break;
}
 
 
url/url.h added: 4, removed: 6, total 0
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022-2023 David Zero <zero-one@zer0-one.net>
// SPDX-FileCopyrightText: 2021-2023 Robin Lindén <dev@robinlinden.eu>
// SPDX-FileCopyrightText: 2021-2024 Robin Lindén <dev@robinlinden.eu>
//
// SPDX-License-Identifier: BSD-2-Clause
 
@@ -215,8 +215,6 @@ private:
pos_ = 0;
}
 
constexpr std::size_t current_pos() const { return pos_; }
 
// Main parser
std::optional<Url> parse_basic(std::string input,
std::optional<Url> base,