mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
AK: Remove the LexicalPath::is_valid() API
Since this is always set to true on the non-default constructor and subsequently never modified, it is somewhat pointless. Furthermore, there are arguably no invalid relative paths.
This commit is contained in:
parent
caa9daf59e
commit
9b8f35259c
10 changed files with 14 additions and 66 deletions
|
@ -162,7 +162,7 @@ u16 URL::default_port_for_scheme(StringView const& scheme)
|
|||
URL URL::create_with_file_scheme(String const& path, String const& fragment, String const& hostname)
|
||||
{
|
||||
LexicalPath lexical_path(path);
|
||||
if (!lexical_path.is_valid() || !lexical_path.is_absolute())
|
||||
if (!lexical_path.is_absolute())
|
||||
return {};
|
||||
|
||||
URL url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue