[partition] Remove unused parameter

- there are no consumers for checking-the-capacity-of-the-drive

This parameter was introduced in 3cd18fd285 as "preparatory work"
but never completed. The architecture of the PartitionCoreModule
makes it very difficult to get the necessary parameters to
the right place, and it would probably be better to put
a SortFilterProxyModel in front of a partitioning model anyway.

Since the display code can already filter on size, just drop this one.
This commit is contained in:
Adriaan de Groot 2020-07-07 23:04:39 +02:00
parent 948c078e1a
commit 313531bc4b
2 changed files with 2 additions and 7 deletions

View File

@ -125,7 +125,7 @@ erase( DeviceList& l, DeviceList::iterator& it )
}
QList< Device* >
getDevices( DeviceType which, qint64 minimumSize )
getDevices( DeviceType which )
{
bool writableOnly = ( which == DeviceType::WritableOnly );
@ -171,11 +171,6 @@ getDevices( DeviceType which, qint64 minimumSize )
cDebug() << Logger::SubEntry << "Removing device with iso9660 filesystem (probably a CD) on it" << it;
it = erase( devices, it );
}
else if ( ( minimumSize >= 0 ) && !( ( *it )->capacity() > minimumSize ) )
{
cDebug() << Logger::SubEntry << "Removing too-small" << it;
it = erase( devices, it );
}
else
{
++it;

View File

@ -45,7 +45,7 @@ enum class DeviceType
* greater than @p minimumSize will be returned.
* @return a list of Devices meeting this criterium.
*/
QList< Device* > getDevices( DeviceType which = DeviceType::All, qint64 minimumSize = -1 );
QList< Device* > getDevices( DeviceType which = DeviceType::All );
} // namespace PartUtils