From f59c64f9041b63e8adb8598236da3d6aee4b6ca9 Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 20 Jul 2015 18:38:39 +0200 Subject: [PATCH] Only store functions with external visibility in QContractDefinition. --- mix/QContractDefinition.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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));