mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 22:03:12 +00:00
Remove wchdir()
It's unused, and will soon be dangerous as the process-wide cwd will lose meaning.
This commit is contained in:
parent
6637ccd3a2
commit
42138f00c6
2 changed files with 0 additions and 8 deletions
|
@ -135,11 +135,6 @@ const wcstring wgetcwd() {
|
||||||
return wcstring();
|
return wcstring();
|
||||||
}
|
}
|
||||||
|
|
||||||
int wchdir(const wcstring &dir) {
|
|
||||||
cstring tmp = wcs2string(dir);
|
|
||||||
return chdir(tmp.c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
FILE *wfopen(const wcstring &path, const char *mode) {
|
FILE *wfopen(const wcstring &path, const char *mode) {
|
||||||
int permissions = 0, options = 0;
|
int permissions = 0, options = 0;
|
||||||
size_t idx = 0;
|
size_t idx = 0;
|
||||||
|
|
|
@ -72,9 +72,6 @@ const char *safe_strerror(int err);
|
||||||
/// Wide character version of getcwd().
|
/// Wide character version of getcwd().
|
||||||
const wcstring wgetcwd();
|
const wcstring wgetcwd();
|
||||||
|
|
||||||
/// Wide character version of chdir().
|
|
||||||
int wchdir(const wcstring &dir);
|
|
||||||
|
|
||||||
/// Wide character version of realpath function.
|
/// Wide character version of realpath function.
|
||||||
/// \returns the canonicalized path, or none if the path is invalid.
|
/// \returns the canonicalized path, or none if the path is invalid.
|
||||||
maybe_t<wcstring> wrealpath(const wcstring &pathname);
|
maybe_t<wcstring> wrealpath(const wcstring &pathname);
|
||||||
|
|
Loading…
Reference in a new issue