From dbac9ecf7b1fb3eeeb557a49ca7aa483ad3b02e3 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 15 Apr 2019 10:14:37 -0400 Subject: [PATCH] [partition] Remove unused code - The name table is in PartitionActions::Choices --- src/modules/partition/gui/PartitionViewStep.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/modules/partition/gui/PartitionViewStep.cpp b/src/modules/partition/gui/PartitionViewStep.cpp index 7053740c9..85e1b63aa 100644 --- a/src/modules/partition/gui/PartitionViewStep.cpp +++ b/src/modules/partition/gui/PartitionViewStep.cpp @@ -462,22 +462,6 @@ PartitionViewStep::onLeave() } -static PartitionActions::Choices::SwapChoice -nameToChoice( QString name, bool& ok ) -{ - using namespace PartitionActions::Choices; - - static const NamedEnumTable 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 ) {