Explorar el Código

FileEntry: Use implicitly-declared copy constructor

Tatsuhiro Tsujikawa hace 6 años
padre
commit
879e4a89b6
Se han modificado 2 ficheros con 0 adiciones y 13 borrados
  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;