[partition] Remove unused code

- The name table is in PartitionActions::Choices
main
Adriaan de Groot 6 years ago
parent d2404851cd
commit dbac9ecf7b

@ -462,22 +462,6 @@ PartitionViewStep::onLeave()
}
static PartitionActions::Choices::SwapChoice
nameToChoice( QString name, bool& ok )
{
using namespace PartitionActions::Choices;
static const NamedEnumTable<SwapChoice> names {
{ QStringLiteral( "none" ), SwapChoice::NoSwap },
{ QStringLiteral( "small" ), SwapChoice::SmallSwap },
{ QStringLiteral( "suspend" ), SwapChoice::FullSwap },
{ QStringLiteral( "reuse" ), SwapChoice::ReuseSwap },
{ QStringLiteral( "file" ), SwapChoice::SwapFile }
};
return names.find( name, ok );
}
void
PartitionViewStep::setConfigurationMap( const QVariantMap& configurationMap )
{

Loading…
Cancel
Save