mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 02:08:53 +00:00
Kernel: Simplify Device::open().
This commit is contained in:
parent
c1b310c5bf
commit
ca9ed13643
Notes:
sideshowbarker
2024-07-19 14:36:29 +09:00
Author: https://github.com/awesomekling
Commit: ca9ed13643
3 changed files with 4 additions and 9 deletions
|
@ -120,13 +120,6 @@ void VFS::traverse_directory_inode(Inode& dir_inode, Function<bool(const FS::Dir
|
|||
});
|
||||
}
|
||||
|
||||
KResultOr<Retained<FileDescriptor>> VFS::open(RetainPtr<Device>&& device, int options)
|
||||
{
|
||||
// FIXME: Respect options.
|
||||
(void)options;
|
||||
return FileDescriptor::create(move(device));
|
||||
}
|
||||
|
||||
KResult VFS::utime(StringView path, Inode& base, time_t atime, time_t mtime)
|
||||
{
|
||||
auto descriptor_or_error = VFS::the().open(move(path), 0, 0, base);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue