Skip to content

Commit

Permalink
Remove unused members from csync_file_stat_t
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Jul 12, 2022
1 parent b70bd89 commit 442bc5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
19 changes: 0 additions & 19 deletions src/csync/csync.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,29 +167,10 @@ struct OCSYNC_EXPORT csync_file_stat_t
int64_t size = 0;
uint64_t inode = 0;

OCC::RemotePermissions remotePerm;
ItemType type = ItemTypeSkip;
bool child_modified = false;
bool has_ignored_files = false; // Specify that a directory, or child directory contains ignored files.
bool is_hidden = false; // Not saved in the DB, only used during discovery for local files.

QByteArray path;
QByteArray rename_path;
QByteArray etag;
QByteArray file_id;
QByteArray directDownloadUrl;
QByteArray directDownloadCookies;
QByteArray original_path; // only set if locale conversion fails

// In the local tree, this can hold a checksum and its type if it is
// computed during discovery for some reason.
// In the remote tree, this will have the server checksum, if available.
// In both cases, the format is "SHA1:baff".
QByteArray checksumHeader;

CSYNC_STATUS error_status = CSYNC_STATUS_OK;

SyncInstructions instruction = CSYNC_INSTRUCTION_NONE;
};

OCSYNC_EXPORT QDebug operator<<(QDebug debug, const SyncInstructions &job);
Expand Down
4 changes: 0 additions & 4 deletions test/csync/vio_tests/check_vio_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ static void traverse_dir(void **state, const QString &dir, int *cnt)
OCC::Vfs *vfs = nullptr;
while( (dirent = csync_vio_local_readdir(dh, vfs)) ) {
assert_non_null(dirent.get());
if (!dirent->original_path.isEmpty()) {
sv->ignored_dir = dirent->original_path;
continue;
}

assert_false(dirent->path.isEmpty());

Expand Down

0 comments on commit 442bc5e

Please sign in to comment.