1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

Kernel: Port File to RefCounted

Since RefCounted automatically calls a method named `will_be_destoyed`
on classes that have one, so there's no need to have a custom
implementation of unref in File.
This commit is contained in:
Idan Horowitz 2021-12-29 01:23:35 +02:00 committed by Andreas Kling
parent 4a3a947df3
commit 6e2a82df13
3 changed files with 2 additions and 12 deletions

View file

@ -15,7 +15,7 @@ class MasterPTY;
class SlavePTY final : public TTY {
public:
virtual bool unref() const override;
bool unref() const;
virtual ~SlavePTY() override;
void on_master_write(const UserOrKernelBuffer&, size_t);