Cleanup.
* Removed superfluous redundant comments.
This commit is contained in:
parent
32da57f74b
commit
0ec2317830
@ -12,7 +12,6 @@
|
|||||||
// #pragma mark - BDiskSystemAddOn
|
// #pragma mark - BDiskSystemAddOn
|
||||||
|
|
||||||
|
|
||||||
// constructor
|
|
||||||
BDiskSystemAddOn::BDiskSystemAddOn(const char* name, uint32 flags)
|
BDiskSystemAddOn::BDiskSystemAddOn(const char* name, uint32 flags)
|
||||||
:
|
:
|
||||||
fName(name),
|
fName(name),
|
||||||
@ -21,13 +20,11 @@ BDiskSystemAddOn::BDiskSystemAddOn(const char* name, uint32 flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// destructor
|
|
||||||
BDiskSystemAddOn::~BDiskSystemAddOn()
|
BDiskSystemAddOn::~BDiskSystemAddOn()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Name
|
|
||||||
const char*
|
const char*
|
||||||
BDiskSystemAddOn::Name() const
|
BDiskSystemAddOn::Name() const
|
||||||
{
|
{
|
||||||
@ -35,7 +32,6 @@ BDiskSystemAddOn::Name() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Flags
|
|
||||||
uint32
|
uint32
|
||||||
BDiskSystemAddOn::Flags() const
|
BDiskSystemAddOn::Flags() const
|
||||||
{
|
{
|
||||||
@ -43,7 +39,6 @@ BDiskSystemAddOn::Flags() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// CanInitialize
|
|
||||||
bool
|
bool
|
||||||
BDiskSystemAddOn::CanInitialize(const BMutablePartition* partition)
|
BDiskSystemAddOn::CanInitialize(const BMutablePartition* partition)
|
||||||
{
|
{
|
||||||
@ -51,7 +46,6 @@ BDiskSystemAddOn::CanInitialize(const BMutablePartition* partition)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// GetInitializationParameterEditor
|
|
||||||
status_t
|
status_t
|
||||||
BDiskSystemAddOn::GetParameterEditor(B_PARAMETER_EDITOR_TYPE type,
|
BDiskSystemAddOn::GetParameterEditor(B_PARAMETER_EDITOR_TYPE type,
|
||||||
BPartitionParameterEditor** editor)
|
BPartitionParameterEditor** editor)
|
||||||
@ -60,7 +54,6 @@ BDiskSystemAddOn::GetParameterEditor(B_PARAMETER_EDITOR_TYPE type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateInitialize
|
|
||||||
status_t
|
status_t
|
||||||
BDiskSystemAddOn::ValidateInitialize(const BMutablePartition* partition,
|
BDiskSystemAddOn::ValidateInitialize(const BMutablePartition* partition,
|
||||||
BString* name, const char* parameters)
|
BString* name, const char* parameters)
|
||||||
@ -69,7 +62,6 @@ BDiskSystemAddOn::ValidateInitialize(const BMutablePartition* partition,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Initialize
|
|
||||||
status_t
|
status_t
|
||||||
BDiskSystemAddOn::Initialize(BMutablePartition* partition, const char* name,
|
BDiskSystemAddOn::Initialize(BMutablePartition* partition, const char* name,
|
||||||
const char* parameters, BPartitionHandle** handle)
|
const char* parameters, BPartitionHandle** handle)
|
||||||
@ -78,7 +70,6 @@ BDiskSystemAddOn::Initialize(BMutablePartition* partition, const char* name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// GetTypeForContentType
|
|
||||||
status_t
|
status_t
|
||||||
BDiskSystemAddOn::GetTypeForContentType(const char* contentType, BString* type)
|
BDiskSystemAddOn::GetTypeForContentType(const char* contentType, BString* type)
|
||||||
{
|
{
|
||||||
@ -86,7 +77,6 @@ BDiskSystemAddOn::GetTypeForContentType(const char* contentType, BString* type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// IsSubSystemFor
|
|
||||||
bool
|
bool
|
||||||
BDiskSystemAddOn::IsSubSystemFor(const BMutablePartition* child)
|
BDiskSystemAddOn::IsSubSystemFor(const BMutablePartition* child)
|
||||||
{
|
{
|
||||||
@ -97,7 +87,6 @@ BDiskSystemAddOn::IsSubSystemFor(const BMutablePartition* child)
|
|||||||
// #pragma mark - BPartitionHandle
|
// #pragma mark - BPartitionHandle
|
||||||
|
|
||||||
|
|
||||||
// constructor
|
|
||||||
BPartitionHandle::BPartitionHandle(BMutablePartition* partition)
|
BPartitionHandle::BPartitionHandle(BMutablePartition* partition)
|
||||||
:
|
:
|
||||||
fPartition(partition)
|
fPartition(partition)
|
||||||
@ -105,13 +94,11 @@ BPartitionHandle::BPartitionHandle(BMutablePartition* partition)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// destructor
|
|
||||||
BPartitionHandle::~BPartitionHandle()
|
BPartitionHandle::~BPartitionHandle()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Partition
|
|
||||||
BMutablePartition*
|
BMutablePartition*
|
||||||
BPartitionHandle::Partition() const
|
BPartitionHandle::Partition() const
|
||||||
{
|
{
|
||||||
@ -119,7 +106,6 @@ BPartitionHandle::Partition() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// SupportedOperations
|
|
||||||
uint32
|
uint32
|
||||||
BPartitionHandle::SupportedOperations(uint32 mask)
|
BPartitionHandle::SupportedOperations(uint32 mask)
|
||||||
{
|
{
|
||||||
@ -127,7 +113,6 @@ BPartitionHandle::SupportedOperations(uint32 mask)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// SupportedChildOperations
|
|
||||||
uint32
|
uint32
|
||||||
BPartitionHandle::SupportedChildOperations(const BMutablePartition* child,
|
BPartitionHandle::SupportedChildOperations(const BMutablePartition* child,
|
||||||
uint32 mask)
|
uint32 mask)
|
||||||
@ -136,7 +121,6 @@ BPartitionHandle::SupportedChildOperations(const BMutablePartition* child,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// SupportsInitializingChild
|
|
||||||
bool
|
bool
|
||||||
BPartitionHandle::SupportsInitializingChild(const BMutablePartition* child,
|
BPartitionHandle::SupportsInitializingChild(const BMutablePartition* child,
|
||||||
const char* diskSystem)
|
const char* diskSystem)
|
||||||
@ -145,7 +129,6 @@ BPartitionHandle::SupportsInitializingChild(const BMutablePartition* child,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// GetNextSupportedType
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::GetNextSupportedType(const BMutablePartition* child,
|
BPartitionHandle::GetNextSupportedType(const BMutablePartition* child,
|
||||||
int32* cookie, BString* type)
|
int32* cookie, BString* type)
|
||||||
@ -154,7 +137,6 @@ BPartitionHandle::GetNextSupportedType(const BMutablePartition* child,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// GetPartitioningInfo
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::GetPartitioningInfo(BPartitioningInfo* info)
|
BPartitionHandle::GetPartitioningInfo(BPartitioningInfo* info)
|
||||||
{
|
{
|
||||||
@ -162,7 +144,6 @@ BPartitionHandle::GetPartitioningInfo(BPartitioningInfo* info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Defragment
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::Defragment()
|
BPartitionHandle::Defragment()
|
||||||
{
|
{
|
||||||
@ -170,7 +151,6 @@ BPartitionHandle::Defragment()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Repair
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::Repair(bool checkOnly)
|
BPartitionHandle::Repair(bool checkOnly)
|
||||||
{
|
{
|
||||||
@ -178,7 +158,6 @@ BPartitionHandle::Repair(bool checkOnly)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateResize
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ValidateResize(off_t* size)
|
BPartitionHandle::ValidateResize(off_t* size)
|
||||||
{
|
{
|
||||||
@ -186,7 +165,6 @@ BPartitionHandle::ValidateResize(off_t* size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateResizeChild
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ValidateResizeChild(const BMutablePartition* child,
|
BPartitionHandle::ValidateResizeChild(const BMutablePartition* child,
|
||||||
off_t* size)
|
off_t* size)
|
||||||
@ -195,7 +173,6 @@ BPartitionHandle::ValidateResizeChild(const BMutablePartition* child,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Resize
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::Resize(off_t size)
|
BPartitionHandle::Resize(off_t size)
|
||||||
{
|
{
|
||||||
@ -203,7 +180,6 @@ BPartitionHandle::Resize(off_t size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ResizeChild
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ResizeChild(BMutablePartition* child, off_t size)
|
BPartitionHandle::ResizeChild(BMutablePartition* child, off_t size)
|
||||||
{
|
{
|
||||||
@ -211,7 +187,6 @@ BPartitionHandle::ResizeChild(BMutablePartition* child, off_t size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateMove
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ValidateMove(off_t* offset)
|
BPartitionHandle::ValidateMove(off_t* offset)
|
||||||
{
|
{
|
||||||
@ -221,7 +196,6 @@ BPartitionHandle::ValidateMove(off_t* offset)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateMoveChild
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ValidateMoveChild(const BMutablePartition* child,
|
BPartitionHandle::ValidateMoveChild(const BMutablePartition* child,
|
||||||
off_t* offset)
|
off_t* offset)
|
||||||
@ -230,7 +204,6 @@ BPartitionHandle::ValidateMoveChild(const BMutablePartition* child,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Move
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::Move(off_t offset)
|
BPartitionHandle::Move(off_t offset)
|
||||||
{
|
{
|
||||||
@ -240,7 +213,6 @@ BPartitionHandle::Move(off_t offset)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// MoveChild
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::MoveChild(BMutablePartition* child, off_t offset)
|
BPartitionHandle::MoveChild(BMutablePartition* child, off_t offset)
|
||||||
{
|
{
|
||||||
@ -248,7 +220,6 @@ BPartitionHandle::MoveChild(BMutablePartition* child, off_t offset)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateSetContentName
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ValidateSetContentName(BString* name)
|
BPartitionHandle::ValidateSetContentName(BString* name)
|
||||||
{
|
{
|
||||||
@ -256,7 +227,6 @@ BPartitionHandle::ValidateSetContentName(BString* name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateSetName
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ValidateSetName(const BMutablePartition* child,
|
BPartitionHandle::ValidateSetName(const BMutablePartition* child,
|
||||||
BString* name)
|
BString* name)
|
||||||
@ -265,7 +235,6 @@ BPartitionHandle::ValidateSetName(const BMutablePartition* child,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// SetContentName
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::SetContentName(const char* name)
|
BPartitionHandle::SetContentName(const char* name)
|
||||||
{
|
{
|
||||||
@ -273,7 +242,6 @@ BPartitionHandle::SetContentName(const char* name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// SetName
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::SetName(BMutablePartition* child, const char* name)
|
BPartitionHandle::SetName(BMutablePartition* child, const char* name)
|
||||||
{
|
{
|
||||||
@ -281,7 +249,6 @@ BPartitionHandle::SetName(BMutablePartition* child, const char* name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateSetType
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ValidateSetType(const BMutablePartition* child,
|
BPartitionHandle::ValidateSetType(const BMutablePartition* child,
|
||||||
const char* type)
|
const char* type)
|
||||||
@ -290,7 +257,6 @@ BPartitionHandle::ValidateSetType(const BMutablePartition* child,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// SetType
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::SetType(BMutablePartition* child, const char* type)
|
BPartitionHandle::SetType(BMutablePartition* child, const char* type)
|
||||||
{
|
{
|
||||||
@ -298,7 +264,6 @@ BPartitionHandle::SetType(BMutablePartition* child, const char* type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// GetContentParameterEditor
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::GetContentParameterEditor(BPartitionParameterEditor** editor)
|
BPartitionHandle::GetContentParameterEditor(BPartitionParameterEditor** editor)
|
||||||
{
|
{
|
||||||
@ -306,7 +271,6 @@ BPartitionHandle::GetContentParameterEditor(BPartitionParameterEditor** editor)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// GetParameterEditor
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::GetParameterEditor(B_PARAMETER_EDITOR_TYPE type,
|
BPartitionHandle::GetParameterEditor(B_PARAMETER_EDITOR_TYPE type,
|
||||||
BPartitionParameterEditor** editor)
|
BPartitionParameterEditor** editor)
|
||||||
@ -315,7 +279,6 @@ BPartitionHandle::GetParameterEditor(B_PARAMETER_EDITOR_TYPE type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateSetContentParameters
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ValidateSetContentParameters(const char* parameters)
|
BPartitionHandle::ValidateSetContentParameters(const char* parameters)
|
||||||
{
|
{
|
||||||
@ -323,7 +286,6 @@ BPartitionHandle::ValidateSetContentParameters(const char* parameters)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateSetParameters
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ValidateSetParameters(const BMutablePartition* child,
|
BPartitionHandle::ValidateSetParameters(const BMutablePartition* child,
|
||||||
const char* parameters)
|
const char* parameters)
|
||||||
@ -332,7 +294,6 @@ BPartitionHandle::ValidateSetParameters(const BMutablePartition* child,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// SetContentParameters
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::SetContentParameters(const char* parameters)
|
BPartitionHandle::SetContentParameters(const char* parameters)
|
||||||
{
|
{
|
||||||
@ -340,7 +301,6 @@ BPartitionHandle::SetContentParameters(const char* parameters)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// SetParameters
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::SetParameters(BMutablePartition* child,
|
BPartitionHandle::SetParameters(BMutablePartition* child,
|
||||||
const char* parameters)
|
const char* parameters)
|
||||||
@ -349,7 +309,6 @@ BPartitionHandle::SetParameters(BMutablePartition* child,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ValidateCreateChild
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::ValidateCreateChild(off_t* offset, off_t* size,
|
BPartitionHandle::ValidateCreateChild(off_t* offset, off_t* size,
|
||||||
const char* type, BString* name, const char* parameters)
|
const char* type, BString* name, const char* parameters)
|
||||||
@ -358,7 +317,6 @@ BPartitionHandle::ValidateCreateChild(off_t* offset, off_t* size,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// CreateChild
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::CreateChild(off_t offset, off_t size, const char* type,
|
BPartitionHandle::CreateChild(off_t offset, off_t size, const char* type,
|
||||||
const char* name, const char* parameters, BMutablePartition** child)
|
const char* name, const char* parameters, BMutablePartition** child)
|
||||||
@ -367,7 +325,6 @@ BPartitionHandle::CreateChild(off_t offset, off_t size, const char* type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// DeleteChild
|
|
||||||
status_t
|
status_t
|
||||||
BPartitionHandle::DeleteChild(BMutablePartition* child)
|
BPartitionHandle::DeleteChild(BMutablePartition* child)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user