mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +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
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