diff --git a/Userland/Libraries/LibCore/DeprecatedFile.cpp b/Userland/Libraries/LibCore/DeprecatedFile.cpp index f4e18665d9..61853b6a28 100644 --- a/Userland/Libraries/LibCore/DeprecatedFile.cpp +++ b/Userland/Libraries/LibCore/DeprecatedFile.cpp @@ -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()) diff --git a/Userland/Libraries/LibCore/DeprecatedFile.h b/Userland/Libraries/LibCore/DeprecatedFile.h index eddf381315..df4fb8e513 100644 --- a/Userland/Libraries/LibCore/DeprecatedFile.h +++ b/Userland/Libraries/LibCore/DeprecatedFile.h @@ -25,14 +25,12 @@ public: static ErrorOr> 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);