mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
removed an unnecessary function
This commit is contained in:
parent
f0cac2f6a9
commit
648ce85256
5
AST.cpp
5
AST.cpp
@ -124,11 +124,6 @@ FunctionDefinition const* ContractDefinition::getConstructor() const
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
FixedHash<4> ContractDefinition::getConstructorsInterface() const
|
|
||||||
{
|
|
||||||
return FixedHash<4>(dev::sha3(getConstructor()->externalSignature()));
|
|
||||||
}
|
|
||||||
|
|
||||||
FunctionDefinition const* ContractDefinition::getFallbackFunction() const
|
FunctionDefinition const* ContractDefinition::getFallbackFunction() const
|
||||||
{
|
{
|
||||||
for (ContractDefinition const* contract: getLinearizedBaseContracts())
|
for (ContractDefinition const* contract: getLinearizedBaseContracts())
|
||||||
|
3
AST.h
3
AST.h
@ -281,9 +281,6 @@ public:
|
|||||||
/// Returns the fallback function or nullptr if no fallback function was specified.
|
/// Returns the fallback function or nullptr if no fallback function was specified.
|
||||||
FunctionDefinition const* getFallbackFunction() const;
|
FunctionDefinition const* getFallbackFunction() const;
|
||||||
|
|
||||||
///@returns hash of the constructor
|
|
||||||
FixedHash<4> getConstructorsInterface() const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// Checks that two functions defined in this contract with the same name have different
|
/// Checks that two functions defined in this contract with the same name have different
|
||||||
/// arguments and that there is at most one constructor.
|
/// arguments and that there is at most one constructor.
|
||||||
|
Loading…
Reference in New Issue
Block a user