Browse Source

FileEntry: Use implicitly-declared copy constructor

Tatsuhiro Tsujikawa 6 years ago
parent
commit
879e4a89b6
2 changed files with 0 additions and 13 deletions
  1. 0 11
      src/FileEntry.cc
  2. 0 2
      src/FileEntry.h

+ 0 - 11
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_;

+ 0 - 2
src/FileEntry.h

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