mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
AK+Libraries: Remove FixedMemoryStream::[readonly_]bytes()
These methods are slightly more convenient than storing the Bytes separately. However, it it feels unsanitary to reach in and access this data directly. Both of the users of these already have the [Readonly]Bytes available in their constructors, and can easily avoid using these methods, so let's remove them entirely.
This commit is contained in:
parent
109ea418ab
commit
3f7d97f098
Notes:
sideshowbarker
2024-07-17 06:00:02 +09:00
Author: https://github.com/AtkinsSJ
Commit: 3f7d97f098
Pull-request: https://github.com/SerenityOS/serenity/pull/20223
4 changed files with 12 additions and 19 deletions
|
@ -31,8 +31,6 @@ public:
|
|||
virtual ErrorOr<size_t> write_some(ReadonlyBytes bytes) override;
|
||||
virtual ErrorOr<void> write_until_depleted(ReadonlyBytes bytes) override;
|
||||
|
||||
Bytes bytes();
|
||||
ReadonlyBytes readonly_bytes() const;
|
||||
size_t offset() const;
|
||||
size_t remaining() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue