mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
Kernel: Remove the now-unused FS::DirectoryEntry
This object was cumbersome and annoying (mostly due to its manually managed, statically sized name buffer.) And now we no longer need it!
This commit is contained in:
@@ -65,26 +65,6 @@ FS* FS::from_fsid(u32 id)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
FS::DirectoryEntry::DirectoryEntry(const char* n, InodeIdentifier i, u8 ft)
|
||||
: name_length(strlen(n))
|
||||
, inode(i)
|
||||
, file_type(ft)
|
||||
{
|
||||
ASSERT(name_length < (int)sizeof(name));
|
||||
memcpy(name, n, name_length);
|
||||
name[name_length] = '\0';
|
||||
}
|
||||
|
||||
FS::DirectoryEntry::DirectoryEntry(const char* n, size_t nl, InodeIdentifier i, u8 ft)
|
||||
: name_length(nl)
|
||||
, inode(i)
|
||||
, file_type(ft)
|
||||
{
|
||||
ASSERT(name_length < (int)sizeof(name));
|
||||
memcpy(name, n, nl);
|
||||
name[nl] = '\0';
|
||||
}
|
||||
|
||||
FS::DirectoryEntryView::DirectoryEntryView(const StringView& n, InodeIdentifier i, u8 ft)
|
||||
: name(n)
|
||||
, inode(i)
|
||||
|
||||
Reference in New Issue
Block a user