App: [skip ci] remove duplicate check

This commit is contained in:
wmayer
2020-05-09 16:44:08 +02:00
parent 9c4c8acb6e
commit bdea1ec0f6

View File

@@ -1030,6 +1030,8 @@ void PropertyFloat::setPathValue(const ObjectIdentifier &path, const boost::any
if (value.type() == typeid(long))
setValue(boost::any_cast<long>(value));
else if (value.type() == typeid(unsigned long))
setValue(boost::any_cast<unsigned long>(value));
else if (value.type() == typeid(int))
setValue(boost::any_cast<int>(value));
else if (value.type() == typeid(double))
@@ -1038,10 +1040,6 @@ void PropertyFloat::setPathValue(const ObjectIdentifier &path, const boost::any
setValue(boost::any_cast<float>(value));
else if (value.type() == typeid(Quantity))
setValue((boost::any_cast<Quantity>(value)).getValue());
else if (value.type() == typeid(long))
setValue(boost::any_cast<long>(value));
else if (value.type() == typeid(unsigned long))
setValue(boost::any_cast<unsigned long>(value));
else
throw bad_cast();
}