mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Revert "Add straycat handling functions."
This reverts commit 171669c3a4.
This needs to be implemented in a different way.
This commit is contained in:
parent
fc33b5a8ab
commit
ee69176a6b
@ -51,7 +51,6 @@ struct csync_rename_s {
|
||||
}
|
||||
};
|
||||
std::vector<renameop> todo;
|
||||
std::vector<std::string> straycats;
|
||||
};
|
||||
|
||||
static int _csync_rename_record(void *obj, void *data) {
|
||||
@ -92,26 +91,4 @@ char* csync_rename_adjust_path(CSYNC* ctx, const char* path)
|
||||
return c_strdup(path);
|
||||
}
|
||||
|
||||
void csync_add_journal_straycat(CSYNC *ctx, const char *filename)
|
||||
{
|
||||
csync_rename_s* d = csync_rename_s::get(ctx);
|
||||
if(d)
|
||||
d->straycats.push_back( std::string(filename));
|
||||
}
|
||||
|
||||
int csync_straycat_count(CSYNC *ctx)
|
||||
{
|
||||
csync_rename_s* d = csync_rename_s::get(ctx);
|
||||
if(d)
|
||||
return d->straycats.size();
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *csync_straycat_at(CSYNC *ctx, int pos )
|
||||
{
|
||||
csync_rename_s* d = csync_rename_s::get(ctx);
|
||||
if(d)
|
||||
return d->straycats.at(pos).c_str();
|
||||
return NULL;
|
||||
}
|
||||
};
|
||||
|
||||
@ -29,11 +29,6 @@ extern "C" {
|
||||
char *csync_rename_adjust_path(CSYNC *ctx, const char *path);
|
||||
void csync_rename_destroy(CSYNC *ctx);
|
||||
void csync_rename_record(CSYNC *ctx, const char *from, const char *to);
|
||||
void csync_add_journal_straycat(CSYNC *ctx, const char* filename);
|
||||
|
||||
int csync_straycat_count(CSYNC *ctx);
|
||||
const char *csync_straycat_at(CSYNC *ctx, int pos );
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user