Browse Source

removed an unnecessary function

cl-refactor
Liana Husikyan 10 years ago
parent
commit
376201c781
  1. 5
      libsolidity/AST.cpp
  2. 3
      libsolidity/AST.h

5
libsolidity/AST.cpp

@ -124,11 +124,6 @@ FunctionDefinition const* ContractDefinition::getConstructor() const
return nullptr;
}
FixedHash<4> ContractDefinition::getConstructorsInterface() const
{
return FixedHash<4>(dev::sha3(getConstructor()->externalSignature()));
}
FunctionDefinition const* ContractDefinition::getFallbackFunction() const
{
for (ContractDefinition const* contract: getLinearizedBaseContracts())

3
libsolidity/AST.h

@ -281,9 +281,6 @@ public:
/// Returns the fallback function or nullptr if no fallback function was specified.
FunctionDefinition const* getFallbackFunction() const;
///@returns hash of the constructor
FixedHash<4> getConstructorsInterface() const;
private:
/// Checks that two functions defined in this contract with the same name have different
/// arguments and that there is at most one constructor.

Loading…
Cancel
Save