diff --git a/include/mbgl/util/uv.hpp b/include/mbgl/util/uv.hpp index 19c6c5b4d..9198b0fd1 100644 --- a/include/mbgl/util/uv.hpp +++ b/include/mbgl/util/uv.hpp @@ -12,8 +12,6 @@ typedef struct uv_fs_s uv_fs_t; namespace uv { -std::string cwd(); - class rwlock; class loop; class async; diff --git a/src/mbgl/util/uv.cpp b/src/mbgl/util/uv.cpp index e36d07cc9..353d6ccc9 100644 --- a/src/mbgl/util/uv.cpp +++ b/src/mbgl/util/uv.cpp @@ -48,25 +48,6 @@ void uv_key_set(uv_key_t* key, void* value) { namespace uv { -std::string cwd() { -#if UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10 - char dir[512]; - uv_cwd(dir, 512); - return dir; -#else - size_t max = 0; - std::string dir; - do { - max += 256; - dir.resize(max); - uv_cwd(const_cast(dir.data()), &max); - } while (max == dir.size()); - dir.resize(max - 1); - return dir; -#endif -} - - lock::lock(mutex &mtx_) : mtx(&mtx_) { if (mtx) { mtx->lock(); } }