Skip to content

Commit

Permalink
find: remove unused members
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsura authored and pstorz committed May 30, 2023
1 parent a8d3edb commit b077bfb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions core/src/findlib/find.h
Expand Up @@ -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]{};
Expand Down Expand Up @@ -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 */
};
Expand Down
3 changes: 1 addition & 2 deletions core/src/findlib/find_one.cc
Expand Up @@ -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;
Expand Down

0 comments on commit b077bfb

Please sign in to comment.