summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];