mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
fs: remove unused SYNC_* helpers
PR-URL: https://github.com/nodejs/node/pull/19041 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
80bd2da6e1
commit
f7e5b385a7
@ -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>());
|
||||
|
Loading…
Reference in New Issue
Block a user