From 76f0c78ece1d7a333ccc619acbb747f457494cc0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 30 May 2025 14:43:54 +0100 Subject: [PATCH] Remove some unused Windows code. --- src/win32/anope_windows.h | 1 - src/win32/windows.cpp | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/win32/anope_windows.h b/src/win32/anope_windows.h index 71e896992..3f8cbf183 100644 --- a/src/win32/anope_windows.h +++ b/src/win32/anope_windows.h @@ -68,7 +68,6 @@ extern CoreExport USHORT WindowsGetLanguage(const Anope::string &lang); extern int setenv(const char *name, const char *value, int overwrite); extern int unsetenv(const char *name); extern int mkstemp(char *input); -extern void getcwd(char *buf, size_t sz); #endif // _WIN32 #endif // WINDOWS_H diff --git a/src/win32/windows.cpp b/src/win32/windows.cpp index 73045f408..3f2f3021e 100644 --- a/src/win32/windows.cpp +++ b/src/win32/windows.cpp @@ -84,9 +84,4 @@ int mkstemp(char *input) return fd; } -void getcwd(char *buf, size_t sz) -{ - GetCurrentDirectory(sz, buf); -} - #endif