mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 11:36:14 +08:00
Remove wopen
It was unused
This commit is contained in:
parent
f27958ef4d
commit
1bbfb7044b
|
@ -218,11 +218,6 @@ int open_cloexec(const char *path, int flags, mode_t mode) {
|
|||
return fd;
|
||||
}
|
||||
|
||||
int wopen(const wcstring &pathname, int flags, mode_t mode) {
|
||||
cstring tmp = wcs2string(pathname);
|
||||
return open(tmp.c_str(), flags, mode);
|
||||
}
|
||||
|
||||
int wopen_cloexec(const wcstring &pathname, int flags, mode_t mode) {
|
||||
cstring tmp = wcs2string(pathname);
|
||||
return open_cloexec(tmp, flags, mode);
|
||||
|
|
|
@ -25,9 +25,6 @@ FILE *wfopen(const wcstring &path, const char *mode);
|
|||
/// Sets CLO_EXEC on a given fd according to the value of \p should_set.
|
||||
int set_cloexec(int fd, bool should_set = true);
|
||||
|
||||
/// Wide character version of open().
|
||||
int wopen(const wcstring &pathname, int flags, mode_t mode = 0);
|
||||
|
||||
/// Wide character version of open() that also sets the close-on-exec flag (atomically when
|
||||
/// possible).
|
||||
int wopen_cloexec(const wcstring &pathname, int flags, mode_t mode = 0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user