mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Kernel/Storage: Remove InterfaceType enum
This enum was created to help put distinction between the commandset and the interface type, as ATAPI devices are simply ATA devices utilizing the SCSI commandset. Because we don't support ATAPI, putting such type of distinction is pointless, so let's remove this for now.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/c3eaa73113 Pull-request: https://github.com/SerenityOS/serenity/pull/14779 Reviewed-by: https://github.com/kleinesfilmroellchen
@@ -21,8 +21,6 @@ StringView StorageDeviceAttributeSysFSComponent::name() const
|
||||
return "sector_size"sv;
|
||||
case Type::CommandSet:
|
||||
return "command_set"sv;
|
||||
case Type::InterfaceType:
|
||||
return "interface_type"sv;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
@@ -65,9 +63,6 @@ ErrorOr<NonnullOwnPtr<KBuffer>> StorageDeviceAttributeSysFSComponent::try_to_gen
|
||||
case Type::CommandSet:
|
||||
value = TRY(KString::formatted("{}", m_device->command_set_to_string_view()));
|
||||
break;
|
||||
case Type::InterfaceType:
|
||||
value = TRY(KString::formatted("{}", m_device->interface_type_to_string_view()));
|
||||
break;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user