mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
SynthFS: Remove unused create_text_file() feature
We don't need to support static text files in SynthFS, it's better to always use generators for everything.
This commit is contained in:
parent
151e6a1818
commit
2d7a993db3
2 changed files with 3 additions and 24 deletions
|
@ -29,7 +29,6 @@ protected:
|
|||
SynthFS();
|
||||
|
||||
NonnullRefPtr<SynthFSInode> create_directory(String&& name);
|
||||
NonnullRefPtr<SynthFSInode> create_text_file(String&& name, ByteBuffer&&, mode_t = 0010644);
|
||||
NonnullRefPtr<SynthFSInode> create_generated_file(String&& name, Function<ByteBuffer(SynthFSInode&)>&&, mode_t = 0100644);
|
||||
NonnullRefPtr<SynthFSInode> create_generated_file(String&& name, Function<ByteBuffer(SynthFSInode&)>&&, Function<ssize_t(SynthFSInode&, const ByteBuffer&)>&&, mode_t = 0100644);
|
||||
|
||||
|
@ -76,7 +75,6 @@ private:
|
|||
|
||||
String m_name;
|
||||
InodeIdentifier m_parent;
|
||||
Optional<KBuffer> m_data;
|
||||
Function<KBuffer(SynthFSInode&)> m_generator;
|
||||
Function<ssize_t(SynthFSInode&, const ByteBuffer&)> m_write_callback;
|
||||
Vector<SynthFSInode*> m_children;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue