[ox/fs] Cleanup

This commit is contained in:
Gary Talent 2021-05-28 22:17:07 -05:00
parent c5326d72af
commit 4f2a03db94
2 changed files with 2 additions and 4 deletions

View File

@ -93,7 +93,7 @@ class FileStoreTemplate {
Error read(InodeId_t id, FsSize_t readStart, FsSize_t readSize, void *data, FsSize_t *size = nullptr) const; Error read(InodeId_t id, FsSize_t readStart, FsSize_t readSize, void *data, FsSize_t *size = nullptr) const;
const ptrarith::Ptr<uint8_t, std::size_t> read(InodeId_t id) const; ptrarith::Ptr<uint8_t, std::size_t> read(InodeId_t id) const;
/** /**
* Reads the "file" at the given id. You are responsible for freeing * Reads the "file" at the given id. You are responsible for freeing
@ -402,7 +402,7 @@ Error FileStoreTemplate<size_t>::read(InodeId_t id, FsSize_t readStart,
} }
template<typename size_t> template<typename size_t>
const ptrarith::Ptr<uint8_t, std::size_t> FileStoreTemplate<size_t>::read(InodeId_t id) const { ptrarith::Ptr<uint8_t, std::size_t> FileStoreTemplate<size_t>::read(InodeId_t id) const {
auto item = find(id); auto item = find(id);
if (item.valid()) { if (item.valid()) {
return item->data(); return item->data();

View File

@ -97,8 +97,6 @@ class OX_PACKED NodeBuffer {
Header m_header; Header m_header;
public: public:
NodeBuffer() noexcept;
NodeBuffer(const NodeBuffer &other, size_t size) noexcept; NodeBuffer(const NodeBuffer &other, size_t size) noexcept;
explicit NodeBuffer(size_t size) noexcept; explicit NodeBuffer(size_t size) noexcept;