aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAnurag Dashputre <anurag4u80@gmail.com>2018-08-23 14:17:00 +0800
committerAnurag Dashputre <anurag4u80@gmail.com>2018-08-23 14:17:00 +0800
commit55524788e2829b3a2b9c6c513f78ba2074aa3385 (patch)
tree5ffad98b1ade82ca019c7c05e921e14f8b1dfba0 /libsolidity
parent435cd95c54c796ba5adcf9cd4017b09c823e9f55 (diff)
downloaddexon-solidity-55524788e2829b3a2b9c6c513f78ba2074aa3385.tar.gz
dexon-solidity-55524788e2829b3a2b9c6c513f78ba2074aa3385.tar.zst
dexon-solidity-55524788e2829b3a2b9c6c513f78ba2074aa3385.zip
Removed the default cases related to assertion to detect the problem at compile-time instead of run-time
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ast/Types.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 04363aa4..d9eb034d 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -1484,8 +1484,6 @@ TypePointer ReferenceType::unaryOperatorResult(Token::Value _operator) const
return make_shared<TupleType>();
case DataLocation::Storage:
return m_isPointer ? TypePointer() : make_shared<TupleType>();
- default:
- solAssert(false, "");
}
return TypePointer();
}
@@ -1531,8 +1529,6 @@ string ReferenceType::identifierLocationSuffix() const
case DataLocation::CallData:
id += "_calldata";
break;
- default:
- solAssert(false, "Unknown location returned by location()");
}
if (isPointer())
id += "_ptr";
@@ -3182,8 +3178,6 @@ string MagicType::richIdentifier() const
return "t_magic_transaction";
case Kind::ABI:
return "t_magic_abi";
- default:
- solAssert(false, "Unknown kind of magic");
}
return "";
}