Skip to content

Commit f7e5b38

Browse files
committed
fs: remove unused SYNC_* helpers
PR-URL: #19041 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 80bd2da commit f7e5b38

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/node_file.cc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -575,24 +575,6 @@ inline int SyncCall(Environment* env, Local<Value> ctx, fs_req_wrap* req_wrap,
575575
return err;
576576
}
577577

578-
#define SYNC_DEST_CALL(func, path, dest, ...) \
579-
fs_req_wrap sync_wrap; \
580-
env->PrintSyncTrace(); \
581-
int err = uv_fs_ ## func(env->event_loop(), \
582-
&sync_wrap.req, \
583-
__VA_ARGS__, \
584-
nullptr); \
585-
if (err < 0) { \
586-
return env->ThrowUVException(err, #func, nullptr, path, dest); \
587-
} \
588-
589-
#define SYNC_CALL(func, path, ...) \
590-
SYNC_DEST_CALL(func, path, nullptr, __VA_ARGS__) \
591-
592-
#define SYNC_REQ sync_wrap.req
593-
594-
#define SYNC_RESULT err
595-
596578
inline FSReqBase* GetReqWrap(Environment* env, Local<Value> value) {
597579
if (value->IsObject()) {
598580
return Unwrap<FSReqBase>(value.As<Object>());

0 commit comments

Comments
 (0)