[partition] Remove unused code

- The name table is in PartitionActions::Choices
This commit is contained in:
Adriaan de Groot 2019-04-15 10:14:37 -04:00
parent d2404851cd
commit dbac9ecf7b

View File

@ -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 )
{