diff --git a/mix/QContractDefinition.cpp b/mix/QContractDefinition.cpp index f4022d1ff..254d04f27 100644 --- a/mix/QContractDefinition.cpp +++ b/mix/QContractDefinition.cpp @@ -39,19 +39,8 @@ QContractDefinition::QContractDefinition(QObject* _parent, dev::solidity::Contra else m_constructor = new QFunctionDefinition(parent); - std::vector found; - for (auto const& f: _contract->getDefinedFunctions()) - { - m_functions.append(new QFunctionDefinition(parent, f)); - found.push_back(f->getName()); - } - for (auto const& it: _contract->getInterfaceFunctions()) - { - if (std::find(found.begin(), found.end(), it.second->getDeclaration().getName()) == found.end()) - m_functions.append(new QFunctionDefinition(parent, it.second)); - } - + m_functions.append(new QFunctionDefinition(parent, it.second)); for (auto const& it: _contract->getEvents()) m_events.append(new QFunctionDefinition(parent, it));