mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
LibFileSystem+Everything: Remove resolve_executable_from_environment
This commit is contained in:
parent
26efdf9d4f
commit
f20d04726a
12 changed files with 12 additions and 23 deletions
|
@ -359,12 +359,6 @@ ErrorOr<void> link_file(StringView destination_path, StringView source_path)
|
|||
return TRY(Core::System::symlink(source_path, TRY(get_duplicate_file_name(destination_path))));
|
||||
}
|
||||
|
||||
ErrorOr<String> resolve_executable_from_environment(StringView filename, int flags)
|
||||
{
|
||||
// FIXME: Callers should Call Core::System::resolve_executable_from_environment instead of FileSystem::resolve_executable_from_environment.
|
||||
return Core::System::resolve_executable_from_environment(filename, flags);
|
||||
}
|
||||
|
||||
bool looks_like_shared_library(StringView path)
|
||||
{
|
||||
return path.ends_with(".so"sv) || path.contains(".so."sv);
|
||||
|
|
|
@ -73,7 +73,6 @@ bool can_delete_or_move(StringView path);
|
|||
ErrorOr<String> read_link(StringView link_path);
|
||||
ErrorOr<void> link_file(StringView destination_path, StringView source_path);
|
||||
|
||||
ErrorOr<String> resolve_executable_from_environment(StringView filename, int flags = 0);
|
||||
bool looks_like_shared_library(StringView path);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue