mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibCore: Remove unused API from DeprecatedFile
It looks like this migration it taking a while, so let's make sure noone accidentally introduces new usages of this currently-unused API.
This commit is contained in:
parent
bc2a517ade
commit
960822ef74
Notes:
sideshowbarker
2024-07-16 23:44:30 +09:00
Author: https://github.com/BenWiederhake
Commit: 960822ef74
Pull-request: https://github.com/SerenityOS/serenity/pull/18758
Reviewed-by: https://github.com/timschumi
2 changed files with 0 additions and 7 deletions
|
@ -143,11 +143,6 @@ bool DeprecatedFile::is_link() const
|
||||||
return S_ISLNK(stat.st_mode);
|
return S_ISLNK(stat.st_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DeprecatedFile::looks_like_shared_library() const
|
|
||||||
{
|
|
||||||
return m_filename.ends_with(".so"sv) || m_filename.contains(".so."sv);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeprecatedString DeprecatedFile::real_path_for(DeprecatedString const& filename)
|
DeprecatedString DeprecatedFile::real_path_for(DeprecatedString const& filename)
|
||||||
{
|
{
|
||||||
if (filename.is_null())
|
if (filename.is_null())
|
||||||
|
|
|
@ -25,14 +25,12 @@ public:
|
||||||
static ErrorOr<NonnullRefPtr<DeprecatedFile>> open(DeprecatedString filename, OpenMode, mode_t = 0644);
|
static ErrorOr<NonnullRefPtr<DeprecatedFile>> open(DeprecatedString filename, OpenMode, mode_t = 0644);
|
||||||
|
|
||||||
DeprecatedString filename() const { return m_filename; }
|
DeprecatedString filename() const { return m_filename; }
|
||||||
void set_filename(const DeprecatedString filename) { m_filename = move(filename); }
|
|
||||||
|
|
||||||
bool is_directory() const;
|
bool is_directory() const;
|
||||||
bool is_device() const;
|
bool is_device() const;
|
||||||
bool is_block_device() const;
|
bool is_block_device() const;
|
||||||
bool is_char_device() const;
|
bool is_char_device() const;
|
||||||
bool is_link() const;
|
bool is_link() const;
|
||||||
bool looks_like_shared_library() const;
|
|
||||||
|
|
||||||
static DeprecatedString current_working_directory();
|
static DeprecatedString current_working_directory();
|
||||||
static DeprecatedString absolute_path(DeprecatedString const& path);
|
static DeprecatedString absolute_path(DeprecatedString const& path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue