Directory: eliminate attribute "have_stat"
Check for 0 in "device" and "inode" instead.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user