summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-04-23 18:32:03 +0200
committerTimo Weingärtner <timo@tiwe.de>2013-04-23 18:32:03 +0200
commit7bb00e45cc6fcfa85514bf4e645b0cedebbc0216 (patch)
treefb4a7acaae8b7a46bc1e795d3968f6beea0fa9ba
parent9d0562d22cef95b0db1af30e199a371670ca8050 (diff)
downloadhadori-7bb00e45cc6fcfa85514bf4e645b0cedebbc0216.tar.gz
use agg init and drop unnecessary stuff
-rw-r--r--hadori.C2
-rw-r--r--inode.h7
2 files changed, 1 insertions, 8 deletions
diff --git a/hadori.C b/hadori.C
index b5e1a57..9abd40b 100644
--- a/hadori.C
+++ b/hadori.C
@@ -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;
diff --git a/inode.h b/inode.h
index 5c74a79..c9768d2 100644
--- a/inode.h
+++ b/inode.h
@@ -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];