Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc

Issue 547053002: [NaCl SDK] nacl_io: Remove Node::Access method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@http_fs_root
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc b/native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc
index d29602d92ff9d023e219a9ef27790391f90efecf..a159c32cfd37b05c8aee2a04c8ae9876b69de338 100644
--- a/native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc
+++ b/native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc
@@ -75,23 +75,6 @@ Error MemFs::FindNode(const Path& path, int type, ScopedNode* out_node) {
return 0;
}
-Error MemFs::Access(const Path& path, int a_mode) {
- ScopedNode node;
- Error error = FindNode(path, 0, &node);
-
- if (error)
- return error;
-
- 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 MemFs::Open(const Path& path, int open_flags, ScopedNode* out_node) {
out_node->reset(NULL);
ScopedNode node;

Powered by Google App Engine
This is Rietveld 408576698