mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 03:15:37 -04:00
Switch to using PartSize class for partition sizes
Every call of `ParseStringSize` is replaced by using an instance of the `PartUtils::PartSize` class. This commit also removes the now-unused previous size parsing functions. Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
This commit is contained in:
parent
3a58ae5e8b
commit
d32733bf59
5 changed files with 17 additions and 124 deletions
|
@ -171,22 +171,6 @@ bool isEfiBootable( const Partition* candidate );
|
|||
*/
|
||||
QString findFS( QString fsName, FileSystem::Type* fsType );
|
||||
|
||||
/**
|
||||
* @brief Parse a partition size string and return its value and unit used.
|
||||
* @param sizeString the string to parse.
|
||||
* @param unit pointer to a SizeUnit variable for storing the parsed unit.
|
||||
* @return the size value, as parsed from the input string.
|
||||
*/
|
||||
double parseSizeString( const QString& sizeString, SizeUnit* unit );
|
||||
|
||||
/**
|
||||
* @brief Parse a partition size string and return its value in bytes.
|
||||
* @param sizeString the string to parse.
|
||||
* @param totalSize the size of the selected drive (used when the size is expressed in %)
|
||||
* @return the size value in bytes.
|
||||
*/
|
||||
qint64 parseSizeString( const QString& sizeString, qint64 totalSize );
|
||||
|
||||
/**
|
||||
* @brief Convert a partition size to a sectors count.
|
||||
* @param size the partition size.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue