mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4851 from anurag-git/anurag_issue_4824
Removed unused "FunctionType::Kind::CallCode"
This commit is contained in:
@@ -2492,7 +2492,7 @@ TypePointers FunctionType::returnParameterTypesWithoutDynamicTypes() const
|
||||
{
|
||||
TypePointers returnParameterTypes = m_returnParameterTypes;
|
||||
|
||||
if (m_kind == Kind::External || m_kind == Kind::CallCode || m_kind == Kind::DelegateCall)
|
||||
if (m_kind == Kind::External || m_kind == Kind::DelegateCall)
|
||||
for (auto& param: returnParameterTypes)
|
||||
if (param->isDynamicallySized() && !param->dataStoredIn(DataLocation::Storage))
|
||||
param = make_shared<InaccessibleDynamicType>();
|
||||
@@ -2514,7 +2514,6 @@ string FunctionType::richIdentifier() const
|
||||
{
|
||||
case Kind::Internal: id += "internal"; break;
|
||||
case Kind::External: id += "external"; break;
|
||||
case Kind::CallCode: id += "callcode"; break;
|
||||
case Kind::DelegateCall: id += "delegatecall"; break;
|
||||
case Kind::BareCall: id += "barecall"; break;
|
||||
case Kind::BareCallCode: id += "barecallcode"; break;
|
||||
@@ -2695,7 +2694,6 @@ unsigned FunctionType::sizeOnStack() const
|
||||
switch(kind)
|
||||
{
|
||||
case Kind::External:
|
||||
case Kind::CallCode:
|
||||
case Kind::DelegateCall:
|
||||
size = 2;
|
||||
break;
|
||||
@@ -2928,7 +2926,6 @@ string FunctionType::externalSignature() const
|
||||
{
|
||||
case Kind::Internal:
|
||||
case Kind::External:
|
||||
case Kind::CallCode:
|
||||
case Kind::DelegateCall:
|
||||
case Kind::Event:
|
||||
break;
|
||||
|
||||
@@ -899,7 +899,6 @@ public:
|
||||
{
|
||||
Internal, ///< stack-call using plain JUMP
|
||||
External, ///< external call using CALL
|
||||
CallCode, ///< external call using CALLCODE, i.e. not exchanging the storage
|
||||
DelegateCall, ///< external call using DELEGATECALL, i.e. not exchanging the storage
|
||||
BareCall, ///< CALL without function hash
|
||||
BareCallCode, ///< CALLCODE without function hash
|
||||
|
||||
Reference in New Issue
Block a user