Remove wopen

It was unused
This commit is contained in:
ridiculousfish 2020-01-28 10:26:31 -08:00
parent f27958ef4d
commit 1bbfb7044b
2 changed files with 0 additions and 8 deletions

View File

@ -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);

View File

@ -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);