Skip to content

Commit

Permalink
fs: remove unused SYNC_* helpers
Browse files Browse the repository at this point in the history
PR-URL: #19041
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
joyeecheung committed Mar 2, 2018
1 parent 80bd2da commit f7e5b38
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -575,24 +575,6 @@ inline int SyncCall(Environment* env, Local<Value> ctx, fs_req_wrap* req_wrap,
return err;
}

#define SYNC_DEST_CALL(func, path, dest, ...) \
fs_req_wrap sync_wrap; \
env->PrintSyncTrace(); \
int err = uv_fs_ ## func(env->event_loop(), \
&sync_wrap.req, \
__VA_ARGS__, \
nullptr); \
if (err < 0) { \
return env->ThrowUVException(err, #func, nullptr, path, dest); \
} \

#define SYNC_CALL(func, path, ...) \
SYNC_DEST_CALL(func, path, nullptr, __VA_ARGS__) \

#define SYNC_REQ sync_wrap.req

#define SYNC_RESULT err

inline FSReqBase* GetReqWrap(Environment* env, Local<Value> value) {
if (value->IsObject()) {
return Unwrap<FSReqBase>(value.As<Object>());
Expand Down

0 comments on commit f7e5b38

Please sign in to comment.