@ -139,9 +139,6 @@ PartitionSize::toBytes( qint64 totalSectors, qint64 sectorSize ) const
case SizeUnit : : GiB :
case SizeUnit : : GiB :
return toBytes ( ) ;
return toBytes ( ) ;
}
}
// notreached
return - 1 ;
}
}
qint64
qint64
@ -179,8 +176,6 @@ PartitionSize::toBytes( qint64 totalBytes ) const
return toBytes ( ) ;
return toBytes ( ) ;
}
}
// notreached
return - 1 ;
}
}
qint64
qint64
@ -211,7 +206,6 @@ PartitionSize::toBytes() const
case SizeUnit : : GiB :
case SizeUnit : : GiB :
return CalamaresUtils : : GiBtoBytes ( static_cast < unsigned long long > ( value ( ) ) ) ;
return CalamaresUtils : : GiBtoBytes ( static_cast < unsigned long long > ( value ( ) ) ) ;
}
}
NOTREACHED return - 1 ;
}
}
bool
bool
@ -237,7 +231,6 @@ PartitionSize::operator<( const PartitionSize& other ) const
case SizeUnit : : GiB :
case SizeUnit : : GiB :
return ( toBytes ( ) < other . toBytes ( ) ) ;
return ( toBytes ( ) < other . toBytes ( ) ) ;
}
}
NOTREACHED return false ;
}
}
bool
bool
@ -263,7 +256,6 @@ PartitionSize::operator>( const PartitionSize& other ) const
case SizeUnit : : GiB :
case SizeUnit : : GiB :
return ( toBytes ( ) > other . toBytes ( ) ) ;
return ( toBytes ( ) > other . toBytes ( ) ) ;
}
}
NOTREACHED return false ;
}
}
bool
bool
@ -289,7 +281,6 @@ PartitionSize::operator==( const PartitionSize& other ) const
case SizeUnit : : GiB :
case SizeUnit : : GiB :
return ( toBytes ( ) = = other . toBytes ( ) ) ;
return ( toBytes ( ) = = other . toBytes ( ) ) ;
}
}
NOTREACHED return false ;
}
}
} // namespace Partition
} // namespace Partition