diff options
-rw-r--r-- | hadori.C | 2 | ||||
-rw-r--r-- | inode.h | 7 |
2 files changed, 1 insertions, 8 deletions
@@ -91,7 +91,7 @@ void handle_file(std::string const & path, struct stat const & s) { to_link.erase(s.st_ino); return; } - inode f(path, s); + inode f{path, s}; debug << f << " is new to us" << std::endl; for (auto const & it : sizes.equal_range(s.st_size)) { inode const & candidate = kept.find(it.second)->second; @@ -28,15 +28,8 @@ struct inode { std::string const filename; struct stat const stat; - inode (std::string const &, struct stat const); - - friend bool compare (inode const &, inode const &); - friend std::ostream& operator<< (std::ostream&, inode const &); }; -inline inode::inode (std::string const & __filename, struct stat const __stat) : filename(__filename), stat(__stat) { -} - inline bool compare (inode const & l, inode const & r) { char lbuffer[1 << 14]; char rbuffer[1 << 14]; |