aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-12 22:01:38 +0800
committerChristian <c@ethdev.com>2015-02-12 22:01:38 +0800
commit5e40b7942689ffa5777ee88fe90d424608027656 (patch)
tree653526635bfaa4687842c9f81b5ed2e02bcf21bd /Types.h
parent5673f994fc5b035f7583bcc857ac93ecf86b4f65 (diff)
downloaddexon-solidity-5e40b7942689ffa5777ee88fe90d424608027656.tar
dexon-solidity-5e40b7942689ffa5777ee88fe90d424608027656.tar.gz
dexon-solidity-5e40b7942689ffa5777ee88fe90d424608027656.tar.bz2
dexon-solidity-5e40b7942689ffa5777ee88fe90d424608027656.tar.lz
dexon-solidity-5e40b7942689ffa5777ee88fe90d424608027656.tar.xz
dexon-solidity-5e40b7942689ffa5777ee88fe90d424608027656.tar.zst
dexon-solidity-5e40b7942689ffa5777ee88fe90d424608027656.zip
Bytes type cleanup.
Diffstat (limited to 'Types.h')
-rw-r--r--Types.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/Types.h b/Types.h
index 0270773f..627bc76f 100644
--- a/Types.h
+++ b/Types.h
@@ -286,9 +286,7 @@ public:
enum class Location { Storage, CallData, Memory };
virtual Category getCategory() const override { return Category::ByteArray; }
- explicit ByteArrayType(Location _location, u256 const& _offset = 0, u256 const& _length = 0,
- bool _dynamicLength = false):
- m_location(_location), m_offset(_offset), m_length(_length), m_dynamicLength(_dynamicLength) {}
+ explicit ByteArrayType(Location _location): m_location(_location) {}
virtual bool isImplicitlyConvertibleTo(Type const& _convertTo) const override;
virtual TypePointer unaryOperatorResult(Token::Value _operator) const override;
virtual bool operator==(const Type& _other) const override;
@@ -296,15 +294,9 @@ public:
virtual std::string toString() const override { return "bytes"; }
Location getLocation() const { return m_location; }
- u256 const& getOffset() const { return m_offset; }
- u256 const& getLength() const { return m_length; }
- bool hasDynamicLength() const { return m_dynamicLength; }
private:
Location m_location;
- u256 m_offset;
- u256 m_length;
- bool m_dynamicLength;
};
/**