Commit 344777e5 by Paweł Wegner

fuse: removed unused functions.

parent 276ef36d
......@@ -32,7 +32,6 @@ struct FuseHighLevel {
int fuse_parse_cmdline(struct fuse_args *, fuse_cmdline_opts *);
void fuse_cmdline_help();
fuse_operations high_level_operations();
int fuse_highlevel(fuse_args *args, fuse_cmdline_opts *opts, Json::Value &json);
} // namespace cloudstorage
......
......@@ -217,27 +217,4 @@ int FuseLowLevel::run(bool singlethread, bool clone_fd) const {
: fuse_session_loop_mt(session_, clone_fd);
}
int fuse_lowlevel(fuse_args *args, fuse_cmdline_opts *opts, Json::Value &json) {
auto ctx = new IFileSystem *;
FuseLowLevel fuse(args, opts->mountpoint, ctx);
fuse_daemonize(opts->foreground);
auto http = std::make_shared<curl::CurlHttp>();
auto temporary_directory = json["temporary_directory"].asString();
if (temporary_directory.empty())
temporary_directory = default_temporary_directory();
auto p = providers(json["providers"], http, temporary_directory);
*ctx = IFileSystem::create(p, util::make_unique<HttpWrapper>(http),
temporary_directory)
.release();
int ret = fuse.run(opts->singlethread, opts->clone_fd);
for (size_t i = 0; i < p.size(); i++) {
json["providers"][int(i)]["token"] = p[i].provider_->token();
json["providers"][int(i)]["access_token"] =
p[i].provider_->hints()["access_token"];
}
delete *ctx;
delete ctx;
return ret;
}
} // namespace cloudstorage
......@@ -18,7 +18,6 @@ struct FuseLowLevel {
};
fuse_lowlevel_ops low_level_operations();
int fuse_lowlevel(fuse_args *args, fuse_cmdline_opts *opts, Json::Value &json);
} // namespace cloudstorage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment