1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +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:
Ben Wiederhake 2023-05-07 21:20:28 +02:00 committed by Andreas Kling
parent bc2a517ade
commit 960822ef74
2 changed files with 0 additions and 7 deletions

View file

@ -143,11 +143,6 @@ bool DeprecatedFile::is_link() const
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)
{
if (filename.is_null())

View file

@ -25,14 +25,12 @@ public:
static ErrorOr<NonnullRefPtr<DeprecatedFile>> open(DeprecatedString filename, OpenMode, mode_t = 0644);
DeprecatedString filename() const { return m_filename; }
void set_filename(const DeprecatedString filename) { m_filename = move(filename); }
bool is_directory() const;
bool is_device() const;
bool is_block_device() const;
bool is_char_device() const;
bool is_link() const;
bool looks_like_shared_library() const;
static DeprecatedString current_working_directory();
static DeprecatedString absolute_path(DeprecatedString const& path);