mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-27 21:42:53 +00: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:
parent
c85f81bc9d
commit
c3eaa73113
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/supercomputer7
Commit: c3eaa73113
Pull-request: https://github.com/SerenityOS/serenity/pull/14779
Reviewed-by: https://github.com/kleinesfilmroellchen
8 changed files with 5 additions and 41 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue