summaryrefslogtreecommitdiff
path: root/Kernel/Devices/SerialDevice.cpp
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-08-14 07:01:19 +0300
committerAndreas Kling <kling@serenityos.org>2021-09-08 00:42:20 +0200
commit21b6d84ff071779a90e351e9959c80e09193ec89 (patch)
treee545cf3e5b278bf0b258a97ccaca70d8c4590eed /Kernel/Devices/SerialDevice.cpp
parent4f04cb98c1281ca7658ab60569898a5f83afc7b7 (diff)
downloadserenity-21b6d84ff071779a90e351e9959c80e09193ec89.zip
Kernel/Devices: Remove required_mode and device_name methods
These methods are no longer needed because SystemServer is able to populate the DevFS on its own. Device absolute_path no longer assume a path to the /dev location, because it really should not assume any path to a Device node. Because StorageManagement still needs to know the storage name, we declare a virtual method only for StorageDevices to override, but this technique should really be removed later on.
Diffstat (limited to 'Kernel/Devices/SerialDevice.cpp')
-rw-r--r--Kernel/Devices/SerialDevice.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/Kernel/Devices/SerialDevice.cpp b/Kernel/Devices/SerialDevice.cpp
index 1fb506d8b7..623c8cc7fc 100644
--- a/Kernel/Devices/SerialDevice.cpp
+++ b/Kernel/Devices/SerialDevice.cpp
@@ -104,11 +104,6 @@ void SerialDevice::put_char(char ch)
m_last_put_char_was_carriage_return = (ch == '\r');
}
-String SerialDevice::device_name() const
-{
- return String::formatted("ttyS{}", minor() - 64);
-}
-
UNMAP_AFTER_INIT void SerialDevice::initialize()
{
set_interrupts(false);