storage: disk_device/DiskSystem: remove useless comments

Change-Id: I751ca483c5790817e31c8e513cd41267a8be664e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8876
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Pascal Abresch
2025-01-29 14:35:09 +00:00
committed by nephele nephele
parent 6db0402021
commit 83e4b8867e
@@ -14,7 +14,6 @@
#include "DiskSystemAddOnManager.h" #include "DiskSystemAddOnManager.h"
// constructor
BDiskSystem::BDiskSystem() BDiskSystem::BDiskSystem()
: :
fID(B_NO_INIT), fID(B_NO_INIT),
@@ -23,7 +22,6 @@ BDiskSystem::BDiskSystem()
} }
// copy constructor
BDiskSystem::BDiskSystem(const BDiskSystem& other) BDiskSystem::BDiskSystem(const BDiskSystem& other)
: :
fID(other.fID), fID(other.fID),
@@ -35,13 +33,11 @@ BDiskSystem::BDiskSystem(const BDiskSystem& other)
} }
// destructor
BDiskSystem::~BDiskSystem() BDiskSystem::~BDiskSystem()
{ {
} }
// InitCheck
status_t status_t
BDiskSystem::InitCheck() const BDiskSystem::InitCheck() const
{ {
@@ -49,7 +45,6 @@ BDiskSystem::InitCheck() const
} }
// Name
const char* const char*
BDiskSystem::Name() const BDiskSystem::Name() const
{ {
@@ -57,7 +52,6 @@ BDiskSystem::Name() const
} }
// ShortName
const char* const char*
BDiskSystem::ShortName() const BDiskSystem::ShortName() const
{ {
@@ -65,7 +59,6 @@ BDiskSystem::ShortName() const
} }
// PrettyName
const char* const char*
BDiskSystem::PrettyName() const BDiskSystem::PrettyName() const
{ {
@@ -73,7 +66,6 @@ BDiskSystem::PrettyName() const
} }
// SupportsDefragmenting
bool bool
BDiskSystem::SupportsDefragmenting(bool* whileMounted) const BDiskSystem::SupportsDefragmenting(bool* whileMounted) const
{ {
@@ -93,7 +85,6 @@ BDiskSystem::SupportsDefragmenting(bool* whileMounted) const
} }
// SupportsRepairing
bool bool
BDiskSystem::SupportsRepairing(bool checkOnly, bool* whileMounted) const BDiskSystem::SupportsRepairing(bool checkOnly, bool* whileMounted) const
{ {
@@ -118,7 +109,6 @@ BDiskSystem::SupportsRepairing(bool checkOnly, bool* whileMounted) const
} }
// SupportsResizing
bool bool
BDiskSystem::SupportsResizing(bool* whileMounted) const BDiskSystem::SupportsResizing(bool* whileMounted) const
{ {
@@ -138,7 +128,6 @@ BDiskSystem::SupportsResizing(bool* whileMounted) const
} }
// SupportsResizingChild
bool bool
BDiskSystem::SupportsResizingChild() const BDiskSystem::SupportsResizingChild() const
{ {
@@ -147,7 +136,6 @@ BDiskSystem::SupportsResizingChild() const
} }
// SupportsMoving
bool bool
BDiskSystem::SupportsMoving(bool* whileMounted) const BDiskSystem::SupportsMoving(bool* whileMounted) const
{ {
@@ -167,7 +155,6 @@ BDiskSystem::SupportsMoving(bool* whileMounted) const
} }
// SupportsMovingChild
bool bool
BDiskSystem::SupportsMovingChild() const BDiskSystem::SupportsMovingChild() const
{ {
@@ -176,7 +163,6 @@ BDiskSystem::SupportsMovingChild() const
} }
// SupportsName
bool bool
BDiskSystem::SupportsName() const BDiskSystem::SupportsName() const
{ {
@@ -185,7 +171,6 @@ BDiskSystem::SupportsName() const
} }
// SupportsContentName
bool bool
BDiskSystem::SupportsContentName() const BDiskSystem::SupportsContentName() const
{ {
@@ -194,7 +179,6 @@ BDiskSystem::SupportsContentName() const
} }
// SupportsSettingName
bool bool
BDiskSystem::SupportsSettingName() const BDiskSystem::SupportsSettingName() const
{ {
@@ -203,7 +187,6 @@ BDiskSystem::SupportsSettingName() const
} }
// SupportsSettingContentName
bool bool
BDiskSystem::SupportsSettingContentName(bool* whileMounted) const BDiskSystem::SupportsSettingContentName(bool* whileMounted) const
{ {
@@ -224,7 +207,6 @@ BDiskSystem::SupportsSettingContentName(bool* whileMounted) const
} }
// SupportsSettingType
bool bool
BDiskSystem::SupportsSettingType() const BDiskSystem::SupportsSettingType() const
{ {
@@ -233,7 +215,6 @@ BDiskSystem::SupportsSettingType() const
} }
// SupportsSettingParameters
bool bool
BDiskSystem::SupportsSettingParameters() const BDiskSystem::SupportsSettingParameters() const
{ {
@@ -242,7 +223,6 @@ BDiskSystem::SupportsSettingParameters() const
} }
// SupportsSettingContentParameters
bool bool
BDiskSystem::SupportsSettingContentParameters(bool* whileMounted) const BDiskSystem::SupportsSettingContentParameters(bool* whileMounted) const
{ {
@@ -263,7 +243,6 @@ BDiskSystem::SupportsSettingContentParameters(bool* whileMounted) const
} }
// SupportsCreatingChild
bool bool
BDiskSystem::SupportsCreatingChild() const BDiskSystem::SupportsCreatingChild() const
{ {
@@ -272,7 +251,6 @@ BDiskSystem::SupportsCreatingChild() const
} }
// SupportsDeletingChild
bool bool
BDiskSystem::SupportsDeletingChild() const BDiskSystem::SupportsDeletingChild() const
{ {
@@ -281,7 +259,6 @@ BDiskSystem::SupportsDeletingChild() const
} }
// SupportsInitializing
bool bool
BDiskSystem::SupportsInitializing() const BDiskSystem::SupportsInitializing() const
{ {
@@ -301,7 +278,6 @@ BDiskSystem::SupportsWriting() const
} }
// GetTypeForContentType
status_t status_t
BDiskSystem::GetTypeForContentType(const char* contentType, BString* type) const BDiskSystem::GetTypeForContentType(const char* contentType, BString* type) const
{ {
@@ -311,7 +287,6 @@ BDiskSystem::GetTypeForContentType(const char* contentType, BString* type) const
if (!contentType || !type || !IsPartitioningSystem()) if (!contentType || !type || !IsPartitioningSystem())
return B_BAD_VALUE; return B_BAD_VALUE;
// get the disk system add-on
DiskSystemAddOnManager* manager = DiskSystemAddOnManager::Default(); DiskSystemAddOnManager* manager = DiskSystemAddOnManager::Default();
BDiskSystemAddOn* addOn = manager->GetAddOn(fName.String()); BDiskSystemAddOn* addOn = manager->GetAddOn(fName.String());
if (!addOn) if (!addOn)
@@ -319,14 +294,12 @@ BDiskSystem::GetTypeForContentType(const char* contentType, BString* type) const
status_t result = addOn->GetTypeForContentType(contentType, type); status_t result = addOn->GetTypeForContentType(contentType, type);
// put the add-on
manager->PutAddOn(addOn); manager->PutAddOn(addOn);
return result; return result;
} }
// IsPartitioningSystem
bool bool
BDiskSystem::IsPartitioningSystem() const BDiskSystem::IsPartitioningSystem() const
{ {
@@ -334,7 +307,6 @@ BDiskSystem::IsPartitioningSystem() const
} }
// IsFileSystem
bool bool
BDiskSystem::IsFileSystem() const BDiskSystem::IsFileSystem() const
{ {
@@ -342,7 +314,6 @@ BDiskSystem::IsFileSystem() const
} }
// =
BDiskSystem& BDiskSystem&
BDiskSystem::operator=(const BDiskSystem& other) BDiskSystem::operator=(const BDiskSystem& other)
{ {
@@ -356,7 +327,6 @@ BDiskSystem::operator=(const BDiskSystem& other)
} }
// _SetTo
status_t status_t
BDiskSystem::_SetTo(disk_system_id id) BDiskSystem::_SetTo(disk_system_id id)
{ {
@@ -374,7 +344,6 @@ BDiskSystem::_SetTo(disk_system_id id)
} }
// _SetTo
status_t status_t
BDiskSystem::_SetTo(const user_disk_system_info* info) BDiskSystem::_SetTo(const user_disk_system_info* info)
{ {
@@ -393,7 +362,6 @@ BDiskSystem::_SetTo(const user_disk_system_info* info)
} }
// _Unset
void void
BDiskSystem::_Unset() BDiskSystem::_Unset()
{ {