Kernel: Use = default for empty destructors

This commit is contained in:
Brian Gianforcaro 2021-09-01 02:05:11 -07:00 committed by Andreas Kling
parent e15be89e18
commit c0341215de
Notes: sideshowbarker 2024-07-18 04:56:06 +09:00
4 changed files with 2 additions and 10 deletions

View File

@ -116,10 +116,6 @@ UNMAP_AFTER_INIT VirtIO::Device::Device(PCI::Address address)
set_status_bit(DEVICE_STATUS_DRIVER);
}
Device::~Device()
{
}
auto Device::mapping_for_bar(u8 bar) -> MappedMMIO&
{
VERIFY(m_use_mmio);

View File

@ -88,7 +88,7 @@ class Device
: public PCI::Device
, public IRQHandler {
public:
virtual ~Device() override;
virtual ~Device() override = default;
protected:
virtual StringView class_name() const = 0;

View File

@ -33,10 +33,6 @@ UNMAP_AFTER_INIT RNG::RNG(PCI::Address address)
}
}
RNG::~RNG()
{
}
bool RNG::handle_device_config_change()
{
VERIFY_NOT_REACHED(); // Device has no config

View File

@ -21,7 +21,7 @@ class RNG final
public:
static NonnullRefPtr<RNG> must_create(PCI::Address address);
virtual StringView purpose() const override { return class_name(); }
virtual ~RNG() override;
virtual ~RNG() override = default;
private:
virtual StringView class_name() const override { return "VirtIOConsole"; }