mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove dead code from ContractType::isImplicitlyConvertibleTo()
This commit is contained in:
parent
38e6f2723d
commit
7681c7dddf
@ -1570,10 +1570,9 @@ BoolResult ContractType::isImplicitlyConvertibleTo(Type const& _convertTo) const
|
||||
if (_convertTo.category() == Category::Contract)
|
||||
{
|
||||
auto const& bases = contractDefinition().annotation().linearizedBaseContracts;
|
||||
if (m_super && bases.size() <= 1)
|
||||
return false;
|
||||
return find(
|
||||
m_super ? ++bases.begin() : bases.begin(), bases.end(),
|
||||
bases.begin(),
|
||||
bases.end(),
|
||||
&dynamic_cast<ContractType const&>(_convertTo).contractDefinition()
|
||||
) != bases.end();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user