Unverified Commit b3c4286b authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

remove unused function: is_fs_path

parent 4a9632b5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -45,8 +45,6 @@ extern hg_id_t rpc_get_dirents_id;

// function definitions

bool is_fs_path(const char* path);

int metadata_to_stat(const std::string& path, const Metadata& md, struct stat& attr);

int get_daemon_pid();
+0 −4
Original line number Diff line number Diff line
@@ -17,10 +17,6 @@ using namespace std;
// rpc address cache
std::unique_ptr<std::unordered_map<uint64_t, hg_addr_t>> rpc_addresses;

bool is_fs_path(const char* path) {
    return strstr(path, CTX->mountdir().c_str()) == path;
}

/**
 * Converts the Metadata object into a stat struct, which is needed by Linux
 * @param path