Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
* Removed superfluous redundant comments.
  • Loading branch information
axeld committed Feb 12, 2013
1 parent 32da57f commit 0ec2317
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions src/kits/storage/disk_device/DiskSystemAddOn.cpp
Expand Up @@ -12,7 +12,6 @@
// #pragma mark - BDiskSystemAddOn


// constructor
BDiskSystemAddOn::BDiskSystemAddOn(const char* name, uint32 flags)
:
fName(name),
Expand All @@ -21,37 +20,32 @@ BDiskSystemAddOn::BDiskSystemAddOn(const char* name, uint32 flags)
}


// destructor
BDiskSystemAddOn::~BDiskSystemAddOn()
{
}


// Name
const char*
BDiskSystemAddOn::Name() const
{
return fName.String();
}


// Flags
uint32
BDiskSystemAddOn::Flags() const
{
return fFlags;
}


// CanInitialize
bool
BDiskSystemAddOn::CanInitialize(const BMutablePartition* partition)
{
return false;
}


// GetInitializationParameterEditor
status_t
BDiskSystemAddOn::GetParameterEditor(B_PARAMETER_EDITOR_TYPE type,
BPartitionParameterEditor** editor)
Expand All @@ -60,7 +54,6 @@ BDiskSystemAddOn::GetParameterEditor(B_PARAMETER_EDITOR_TYPE type,
}


// ValidateInitialize
status_t
BDiskSystemAddOn::ValidateInitialize(const BMutablePartition* partition,
BString* name, const char* parameters)
Expand All @@ -69,7 +62,6 @@ BDiskSystemAddOn::ValidateInitialize(const BMutablePartition* partition,
}


// Initialize
status_t
BDiskSystemAddOn::Initialize(BMutablePartition* partition, const char* name,
const char* parameters, BPartitionHandle** handle)
Expand All @@ -78,15 +70,13 @@ BDiskSystemAddOn::Initialize(BMutablePartition* partition, const char* name,
}


// GetTypeForContentType
status_t
BDiskSystemAddOn::GetTypeForContentType(const char* contentType, BString* type)
{
return B_NOT_SUPPORTED;
}


// IsSubSystemFor
bool
BDiskSystemAddOn::IsSubSystemFor(const BMutablePartition* child)
{
Expand All @@ -97,37 +87,32 @@ BDiskSystemAddOn::IsSubSystemFor(const BMutablePartition* child)
// #pragma mark - BPartitionHandle


// constructor
BPartitionHandle::BPartitionHandle(BMutablePartition* partition)
:
fPartition(partition)
{
}


// destructor
BPartitionHandle::~BPartitionHandle()
{
}


// Partition
BMutablePartition*
BPartitionHandle::Partition() const
{
return fPartition;
}


// SupportedOperations
uint32
BPartitionHandle::SupportedOperations(uint32 mask)
{
return 0;
}


// SupportedChildOperations
uint32
BPartitionHandle::SupportedChildOperations(const BMutablePartition* child,
uint32 mask)
Expand All @@ -136,7 +121,6 @@ BPartitionHandle::SupportedChildOperations(const BMutablePartition* child,
}


// SupportsInitializingChild
bool
BPartitionHandle::SupportsInitializingChild(const BMutablePartition* child,
const char* diskSystem)
Expand All @@ -145,7 +129,6 @@ BPartitionHandle::SupportsInitializingChild(const BMutablePartition* child,
}


// GetNextSupportedType
status_t
BPartitionHandle::GetNextSupportedType(const BMutablePartition* child,
int32* cookie, BString* type)
Expand All @@ -154,39 +137,34 @@ BPartitionHandle::GetNextSupportedType(const BMutablePartition* child,
}


// GetPartitioningInfo
status_t
BPartitionHandle::GetPartitioningInfo(BPartitioningInfo* info)
{
return B_NOT_SUPPORTED;
}


// Defragment
status_t
BPartitionHandle::Defragment()
{
return B_NOT_SUPPORTED;
}


// Repair
status_t
BPartitionHandle::Repair(bool checkOnly)
{
return B_NOT_SUPPORTED;
}


// ValidateResize
status_t
BPartitionHandle::ValidateResize(off_t* size)
{
return B_BAD_VALUE;
}


// ValidateResizeChild
status_t
BPartitionHandle::ValidateResizeChild(const BMutablePartition* child,
off_t* size)
Expand All @@ -195,23 +173,20 @@ BPartitionHandle::ValidateResizeChild(const BMutablePartition* child,
}


// Resize
status_t
BPartitionHandle::Resize(off_t size)
{
return B_NOT_SUPPORTED;
}


// ResizeChild
status_t
BPartitionHandle::ResizeChild(BMutablePartition* child, off_t size)
{
return B_NOT_SUPPORTED;
}


// ValidateMove
status_t
BPartitionHandle::ValidateMove(off_t* offset)
{
Expand All @@ -221,7 +196,6 @@ BPartitionHandle::ValidateMove(off_t* offset)
}


// ValidateMoveChild
status_t
BPartitionHandle::ValidateMoveChild(const BMutablePartition* child,
off_t* offset)
Expand All @@ -230,7 +204,6 @@ BPartitionHandle::ValidateMoveChild(const BMutablePartition* child,
}


// Move
status_t
BPartitionHandle::Move(off_t offset)
{
Expand All @@ -240,23 +213,20 @@ BPartitionHandle::Move(off_t offset)
}


// MoveChild
status_t
BPartitionHandle::MoveChild(BMutablePartition* child, off_t offset)
{
return B_NOT_SUPPORTED;
}


// ValidateSetContentName
status_t
BPartitionHandle::ValidateSetContentName(BString* name)
{
return B_BAD_VALUE;
}


// ValidateSetName
status_t
BPartitionHandle::ValidateSetName(const BMutablePartition* child,
BString* name)
Expand All @@ -265,23 +235,20 @@ BPartitionHandle::ValidateSetName(const BMutablePartition* child,
}


// SetContentName
status_t
BPartitionHandle::SetContentName(const char* name)
{
return B_NOT_SUPPORTED;
}


// SetName
status_t
BPartitionHandle::SetName(BMutablePartition* child, const char* name)
{
return B_NOT_SUPPORTED;
}


// ValidateSetType
status_t
BPartitionHandle::ValidateSetType(const BMutablePartition* child,
const char* type)
Expand All @@ -290,23 +257,20 @@ BPartitionHandle::ValidateSetType(const BMutablePartition* child,
}


// SetType
status_t
BPartitionHandle::SetType(BMutablePartition* child, const char* type)
{
return B_NOT_SUPPORTED;
}


// GetContentParameterEditor
status_t
BPartitionHandle::GetContentParameterEditor(BPartitionParameterEditor** editor)
{
return B_NOT_SUPPORTED;
}


// GetParameterEditor
status_t
BPartitionHandle::GetParameterEditor(B_PARAMETER_EDITOR_TYPE type,
BPartitionParameterEditor** editor)
Expand All @@ -315,15 +279,13 @@ BPartitionHandle::GetParameterEditor(B_PARAMETER_EDITOR_TYPE type,
}


// ValidateSetContentParameters
status_t
BPartitionHandle::ValidateSetContentParameters(const char* parameters)
{
return B_BAD_VALUE;
}


// ValidateSetParameters
status_t
BPartitionHandle::ValidateSetParameters(const BMutablePartition* child,
const char* parameters)
Expand All @@ -332,15 +294,13 @@ BPartitionHandle::ValidateSetParameters(const BMutablePartition* child,
}


// SetContentParameters
status_t
BPartitionHandle::SetContentParameters(const char* parameters)
{
return B_NOT_SUPPORTED;
}


// SetParameters
status_t
BPartitionHandle::SetParameters(BMutablePartition* child,
const char* parameters)
Expand All @@ -349,7 +309,6 @@ BPartitionHandle::SetParameters(BMutablePartition* child,
}


// ValidateCreateChild
status_t
BPartitionHandle::ValidateCreateChild(off_t* offset, off_t* size,
const char* type, BString* name, const char* parameters)
Expand All @@ -358,7 +317,6 @@ BPartitionHandle::ValidateCreateChild(off_t* offset, off_t* size,
}


// CreateChild
status_t
BPartitionHandle::CreateChild(off_t offset, off_t size, const char* type,
const char* name, const char* parameters, BMutablePartition** child)
Expand All @@ -367,7 +325,6 @@ BPartitionHandle::CreateChild(off_t offset, off_t size, const char* type,
}


// DeleteChild
status_t
BPartitionHandle::DeleteChild(BMutablePartition* child)
{
Expand Down

0 comments on commit 0ec2317

Please sign in to comment.