mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +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
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021, Max Wipfli <max.wipfli@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -15,7 +16,6 @@ LexicalPath::LexicalPath(String s)
|
|||
: m_string(move(s))
|
||||
{
|
||||
canonicalize();
|
||||
m_is_valid = true;
|
||||
}
|
||||
|
||||
void LexicalPath::canonicalize()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue