From fefb35c782141b96a118dc09bddc9d588b4c2d82 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 16 Jun 2014 19:37:33 +0200 Subject: Directory: eliminate attribute "have_stat" Check for 0 in "device" and "inode" instead. --- src/db/plugins/simple/Directory.cxx | 3 ++- src/db/plugins/simple/Directory.hxx | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db/plugins/simple') diff --git a/src/db/plugins/simple/Directory.cxx b/src/db/plugins/simple/Directory.cxx index 6259df49f..218652b03 100644 --- a/src/db/plugins/simple/Directory.cxx +++ b/src/db/plugins/simple/Directory.cxx @@ -39,7 +39,8 @@ Directory::Directory(std::string &&_path_utf8, Directory *_parent) :parent(_parent), - mtime(0), have_stat(false), + mtime(0), + inode(0), device(0), path(std::move(_path_utf8)), mounted_database(nullptr) { diff --git a/src/db/plugins/simple/Directory.hxx b/src/db/plugins/simple/Directory.hxx index 80675bd21..acef62143 100644 --- a/src/db/plugins/simple/Directory.hxx +++ b/src/db/plugins/simple/Directory.hxx @@ -95,7 +95,6 @@ struct Directory { Directory *parent; time_t mtime; unsigned inode, device; - bool have_stat; /* not needed if ino_t == dev_t == 0 is impossible */ std::string path; -- cgit v1.2.3