From b077bfb9c4570a4cafca77e756b1494f975c55b5 Mon Sep 17 00:00:00 2001 From: Sebastian Sura Date: Thu, 6 Apr 2023 13:11:54 +0200 Subject: [PATCH] find: remove unused members --- core/src/findlib/find.h | 3 --- core/src/findlib/find_one.cc | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/findlib/find.h b/core/src/findlib/find.h index a8355ac0870..37274a09003 100644 --- a/core/src/findlib/find.h +++ b/core/src/findlib/find.h @@ -222,8 +222,6 @@ struct FindFilesPacket { time_t save_time{0}; /**< Start of incremental time */ bool accurate_found{false}; /**< Found in the accurate hash (valid after CheckChanges()) */ - bool dereference{false}; /**< Follow links (not implemented) */ - bool null_output_device{false}; /**< Using null output device */ bool incremental{false}; /**< Incremental save */ bool no_read{false}; /**< Do not read this file when using Plugin */ char VerifyOpts[MAX_OPTS]{}; @@ -260,7 +258,6 @@ struct FindFilesPacket { /* Darwin specific things. * To avoid clutter, we always include rsrc_bfd and volhas_attrlist. */ - BareosFilePacket rsrc_bfd; /**< Fd for resource forks */ bool volhas_attrlist{false}; /**< Volume supports getattrlist() */ HfsPlusInfo hfsinfo; /**< Finder Info and resource fork size */ }; diff --git a/core/src/findlib/find_one.cc b/core/src/findlib/find_one.cc index ede58a83f3e..70e2531420b 100644 --- a/core/src/findlib/find_one.cc +++ b/core/src/findlib/find_one.cc @@ -479,8 +479,7 @@ static inline int process_regular_file(JobControlRecord* jcr, /* Don't bother opening empty, world readable files. Also do not open * files when archive is meant for /dev/null. */ - if (ff_pkt->null_output_device - || (sizeleft == 0 && MODE_RALL == (MODE_RALL & ff_pkt->statp.st_mode))) { + if (sizeleft == 0 && MODE_RALL == (MODE_RALL & ff_pkt->statp.st_mode)) { ff_pkt->type = FT_REGE; } else { ff_pkt->type = FT_REG;