From 55524788e2829b3a2b9c6c513f78ba2074aa3385 Mon Sep 17 00:00:00 2001 From: Anurag Dashputre Date: Thu, 23 Aug 2018 11:47:00 +0530 Subject: Removed the default cases related to assertion to detect the problem at compile-time instead of run-time --- libsolidity/ast/Types.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libsolidity/ast') 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(); case DataLocation::Storage: return m_isPointer ? TypePointer() : make_shared(); - 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 ""; } -- cgit v1.2.3