| Index: native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
|
| index 54e15a14009e75a3437d73255fa67e548924c0e5..3d6276d4c0b35ac9fb7be10dbefbeafea93be3cf 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
|
| +++ b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
|
| @@ -41,34 +41,6 @@ std::string NormalizeHeaderKey(const std::string& s) {
|
| return result;
|
| }
|
|
|
| -Error HttpFs::Access(const Path& path, int a_mode) {
|
| - ScopedNode node;
|
| - NodeMap_t::iterator iter = node_cache_.find(path.Join());
|
| - if (iter == node_cache_.end()) {
|
| - // If we can't find the node in the cache, fetch it
|
| - std::string url = MakeUrl(path);
|
| - node.reset(new HttpFsNode(this, url, cache_content_));
|
| - Error error = node->Init(0);
|
| - if (error)
|
| - return error;
|
| -
|
| - error = node->GetStat(NULL);
|
| - if (error)
|
| - return error;
|
| - } else {
|
| - node = iter->second;
|
| - }
|
| -
|
| - int obj_mode = node->GetMode();
|
| - if (((a_mode & R_OK) && !(obj_mode & S_IREAD)) ||
|
| - ((a_mode & W_OK) && !(obj_mode & S_IWRITE)) ||
|
| - ((a_mode & X_OK) && !(obj_mode & S_IEXEC))) {
|
| - return EACCES;
|
| - }
|
| -
|
| - return 0;
|
| -}
|
| -
|
| Error HttpFs::Open(const Path& path, int open_flags, ScopedNode* out_node) {
|
| out_node->reset(NULL);
|
|
|
|
|