Remove a redundant check

m_type can't be FunctionType::Kind::DelegateCall.
This commit is contained in:
Kwang Yul Seo 2017-11-13 09:54:29 +09:00
parent 284c383972
commit d70ff5f8c3

View File

@ -2574,7 +2574,7 @@ MemberList::MemberMap FunctionType::nativeMembers(ContractDefinition const*) con
"selector", "selector",
make_shared<FixedBytesType>(4) make_shared<FixedBytesType>(4)
)); ));
if (m_kind != Kind::BareDelegateCall && m_kind != Kind::DelegateCall) if (m_kind != Kind::BareDelegateCall)
{ {
if (isPayable()) if (isPayable())
members.push_back(MemberList::Member( members.push_back(MemberList::Member(