Skip to content

Commit fab93a2

Browse files
authored
Remove unused __syscall_rename implementations. NFC (#18984)
This syscall was removed in #15411
1 parent ffa2a51 commit fab93a2

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/library_syscall.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,6 @@ var SyscallsLibrary = {
175175
FS.chmod(path, mode);
176176
return 0;
177177
},
178-
__syscall_rename__sig: 'ipp',
179-
__syscall_rename: function(old_path, new_path) {
180-
old_path = SYSCALLS.getStr(old_path);
181-
new_path = SYSCALLS.getStr(new_path);
182-
FS.rename(old_path, new_path);
183-
return 0;
184-
},
185178
__syscall_rmdir__sig: 'ip',
186179
__syscall_rmdir: function(path) {
187180
path = SYSCALLS.getStr(path);

system/lib/wasmfs/syscalls.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,10 +1038,6 @@ int __syscall_renameat(int olddirfd,
10381038
return 0;
10391039
}
10401040

1041-
int __syscall_rename(intptr_t oldpath, intptr_t newpath) {
1042-
return __syscall_renameat(AT_FDCWD, oldpath, AT_FDCWD, newpath);
1043-
}
1044-
10451041
// TODO: Test this with non-AT_FDCWD values.
10461042
int __syscall_symlinkat(intptr_t target, int newdirfd, intptr_t linkpath) {
10471043
auto parsed = path::parseParent((char*)linkpath, newdirfd);

0 commit comments

Comments
 (0)