diff options
author | Timo Weingärtner <timo@tiwe.de> | 2013-04-23 18:32:03 +0200 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2013-04-23 18:32:03 +0200 |
commit | 7bb00e45cc6fcfa85514bf4e645b0cedebbc0216 (patch) | |
tree | fb4a7acaae8b7a46bc1e795d3968f6beea0fa9ba | |
parent | 9d0562d22cef95b0db1af30e199a371670ca8050 (diff) | |
download | hadori-7bb00e45cc6fcfa85514bf4e645b0cedebbc0216.tar.gz |
use agg init and drop unnecessary stuff
-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]; |