diff options
author | Christian Parpart <christian@ethereum.org> | 2018-11-30 20:34:44 +0800 |
---|---|---|
committer | Christian Parpart <christian@ethereum.org> | 2018-12-01 00:10:39 +0800 |
commit | 18e3d6dbca1250cdc36119c3da8328338fe9f1f6 (patch) | |
tree | 95618af47472cdcda26132e43f87d7ea1e91c6c4 /liblangutil/SourceLocation.h | |
parent | 435f7b3b72157e884344adbc7b62033bd08bb51c (diff) | |
download | dexon-solidity-18e3d6dbca1250cdc36119c3da8328338fe9f1f6.tar dexon-solidity-18e3d6dbca1250cdc36119c3da8328338fe9f1f6.tar.gz dexon-solidity-18e3d6dbca1250cdc36119c3da8328338fe9f1f6.tar.bz2 dexon-solidity-18e3d6dbca1250cdc36119c3da8328338fe9f1f6.tar.lz dexon-solidity-18e3d6dbca1250cdc36119c3da8328338fe9f1f6.tar.xz dexon-solidity-18e3d6dbca1250cdc36119c3da8328338fe9f1f6.tar.zst dexon-solidity-18e3d6dbca1250cdc36119c3da8328338fe9f1f6.zip |
liblangutil: small refactors wrt. API cleanups
Especially also remove SourceLocation ctor's that the compiler can default-implement.
Diffstat (limited to 'liblangutil/SourceLocation.h')
-rw-r--r-- | liblangutil/SourceLocation.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/liblangutil/SourceLocation.h b/liblangutil/SourceLocation.h index 2dfd7123..732a32e1 100644 --- a/liblangutil/SourceLocation.h +++ b/liblangutil/SourceLocation.h @@ -41,20 +41,6 @@ struct SourceLocation SourceLocation(): start(-1), end(-1), source{nullptr} { } SourceLocation(int _start, int _end, std::shared_ptr<CharStream> _source): start(_start), end(_end), source{std::move(_source)} { } - SourceLocation(SourceLocation&& _other) noexcept: - start(_other.start), - end(_other.end), - source{std::move(_other.source)} - {} - SourceLocation(SourceLocation const&) = default; - SourceLocation& operator=(SourceLocation const&) = default; - SourceLocation& operator=(SourceLocation&& _other) noexcept - { - start = _other.start; - end = _other.end; - source = std::move(_other.source); - return *this; - } bool operator==(SourceLocation const& _other) const { |