mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
Kernel: Remove type from StorageDevice class
This commit is contained in:
parent
9b75b1be5f
commit
a73bd0fff8
14 changed files with 1 additions and 47 deletions
|
@ -43,7 +43,6 @@ public:
|
|||
static Result<NonnullOwnPtr<EBRPartitionTable>, PartitionTable::Error> try_to_initialize(const StorageDevice&);
|
||||
explicit EBRPartitionTable(const StorageDevice&);
|
||||
virtual bool is_valid() const override { return m_valid; };
|
||||
virtual Type type() const override { return Type::EBR; };
|
||||
|
||||
private:
|
||||
void search_extended_partition(const StorageDevice&, MBRPartitionTable&, u64, size_t limit);
|
||||
|
|
|
@ -43,7 +43,6 @@ public:
|
|||
static Result<NonnullOwnPtr<GUIDPartitionTable>, PartitionTable::Error> try_to_initialize(const StorageDevice&);
|
||||
explicit GUIDPartitionTable(const StorageDevice&);
|
||||
|
||||
virtual Type type() const override { return Type::GPT; };
|
||||
virtual bool is_valid() const override { return m_valid; };
|
||||
|
||||
private:
|
||||
|
|
|
@ -68,7 +68,6 @@ public:
|
|||
|
||||
bool is_protective_mbr() const;
|
||||
bool contains_ebr() const;
|
||||
virtual Type type() const override { return Type::MBR; };
|
||||
virtual bool is_valid() const override { return m_valid; };
|
||||
|
||||
protected:
|
||||
|
|
|
@ -36,12 +36,6 @@ namespace Kernel {
|
|||
|
||||
class PartitionTable {
|
||||
public:
|
||||
enum class Type {
|
||||
MBR,
|
||||
EBR,
|
||||
GPT,
|
||||
BSD
|
||||
};
|
||||
enum class Error {
|
||||
Invalid,
|
||||
MBRProtective,
|
||||
|
@ -51,7 +45,6 @@ public:
|
|||
public:
|
||||
Optional<DiskPartitionMetadata> partition(unsigned index);
|
||||
size_t partitions_count() const { return m_partitions.size(); }
|
||||
virtual Type type() const = 0;
|
||||
virtual ~PartitionTable() = default;
|
||||
virtual bool is_valid() const = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue