diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2018-12-02 17:01:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2018-12-02 17:03:03 +0900 |
| commit | 879e4a89b637007823709349c8f63b458551abc0 (patch) | |
| tree | 74f301d3ab4cc06d89703551e6800e4f074cba50 /src | |
| parent | 6fb0fe2196251471b4e1cab2427c9e5ceb000f08 (diff) | |
FileEntry: Use implicitly-declared copy constructor
Diffstat (limited to 'src')
| -rw-r--r-- | src/FileEntry.cc | 11 | ||||
| -rw-r--r-- | src/FileEntry.h | 2 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/FileEntry.cc b/src/FileEntry.cc index a2353435..5e976085 100644 --- a/src/FileEntry.cc +++ b/src/FileEntry.cc @@ -90,17 +90,6 @@ FileEntry::FileEntry() FileEntry::~FileEntry() = default; -FileEntry& FileEntry::operator=(const FileEntry& entry) -{ - if (this != &entry) { - path_ = entry.path_; - length_ = entry.length_; - offset_ = entry.offset_; - requested_ = entry.requested_; - } - return *this; -} - bool FileEntry::operator<(const FileEntry& fileEntry) const { return offset_ < fileEntry.offset_; diff --git a/src/FileEntry.h b/src/FileEntry.h index d304ce16..cbd3c072 100644 --- a/src/FileEntry.h +++ b/src/FileEntry.h @@ -111,8 +111,6 @@ public: ~FileEntry(); - FileEntry& operator=(const FileEntry& entry); - std::string getBasename() const; std::string getDirname() const; |
