From 39b6bc5d76a1e347c22d4e7e7c7d4d6e6a770f8a Mon Sep 17 00:00:00 2001 From: David Wendt <45795991+davidwendt@users.noreply.github.com> Date: Fri, 8 Dec 2023 09:31:06 -0500 Subject: [PATCH] Remove WORKSPACE env var from cudf_test temp_directory class (#14588) Removes the `WORKSPACE` env var check from the `cudf_test` `temp_directory` class. This env var is not being used. This is part of a larger effort to consolidate and document libcudf env vars. Authors: - David Wendt (https://github.com/davidwendt) Approvers: - Nghia Truong (https://github.com/ttnghia) - Bradley Dice (https://github.com/bdice) - Vukasin Milovanovic (https://github.com/vuule) URL: https://github.com/rapidsai/cudf/pull/14588 --- cpp/include/cudf_test/file_utilities.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cpp/include/cudf_test/file_utilities.hpp b/cpp/include/cudf_test/file_utilities.hpp index fa3daae639e..202e7604fa0 100644 --- a/cpp/include/cudf_test/file_utilities.hpp +++ b/cpp/include/cudf_test/file_utilities.hpp @@ -16,14 +16,13 @@ #pragma once +#include + #include #include #include -#include - #include - -#include +#include /** * @brief RAII class for creating a temporary directory. @@ -41,7 +40,6 @@ class temp_directory { temp_directory(std::string const& base_name) { std::string dir_template{std::filesystem::temp_directory_path().string()}; - if (auto env_p = std::getenv("WORKSPACE")) dir_template = env_p; dir_template += "/" + base_name + ".XXXXXX"; auto const tmpdirptr = mkdtemp(const_cast(dir_template.data()));