aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/required_confirmations.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/resolver/required_confirmations.cc')
-rw-r--r--paludis/resolver/required_confirmations.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/paludis/resolver/required_confirmations.cc b/paludis/resolver/required_confirmations.cc
index 66a424fb4..d8d934398 100644
--- a/paludis/resolver/required_confirmations.cc
+++ b/paludis/resolver/required_confirmations.cc
@@ -28,8 +28,6 @@ using namespace paludis::resolver;
const std::shared_ptr<RequiredConfirmation>
RequiredConfirmation::deserialise(Deserialisation & d)
{
- std::shared_ptr<RequiredConfirmation> result;
-
if (d.class_name() == "DowngradeConfirmation")
return DowngradeConfirmation::deserialise(d);
else if (d.class_name() == "NotBestConfirmation")
@@ -42,10 +40,9 @@ RequiredConfirmation::deserialise(Deserialisation & d)
return MaskedConfirmation::deserialise(d);
else if (d.class_name() == "ChangedChoicesConfirmation")
return ChangedChoicesConfirmation::deserialise(d);
- else
- throw InternalError(PALUDIS_HERE, "unknown class '" + stringify(d.class_name()) + "'");
- return result;
+ throw InternalError(PALUDIS_HERE,
+ "unknown class '" + stringify(d.class_name()) + "'");
}
const std::shared_ptr<DowngradeConfirmation>