FileEntry: Use implicitly-declared copy constructor

pull/1315/head
Tatsuhiro Tsujikawa 2018-12-02 17:01:47 +09:00
parent 6fb0fe2196
commit 879e4a89b6
2 changed files with 0 additions and 13 deletions

View File

@ -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_;

View File

@ -111,8 +111,6 @@ public:
~FileEntry();
FileEntry& operator=(const FileEntry& entry);
std::string getBasename() const;
std::string getDirname() const;