Skip to content

Commit 8c5bebe

Browse files
committed
Remove unused code
Signed-off-by: Aleksandr Motsjonov <[email protected]>
1 parent 99108fd commit 8c5bebe

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tests/test_image_converter.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -571,14 +571,6 @@ void test_fix_metadata_unsupported_type()
571571
OIIO_CHECK_EQUAL( spec.find_attribute( "Make" ), nullptr );
572572
}
573573

574-
/// Helper function to get the test database path
575-
std::string get_test_database_path()
576-
{
577-
// Get the current working directory (should be the project root)
578-
std::string current_path = std::filesystem::current_path().string();
579-
return current_path + "/tests/materials/test-database";
580-
}
581-
582574
/// Helper function to set up test environment and capture output for parse_parameters tests
583575
struct ParseParametersTestResult
584576
{
@@ -603,9 +595,7 @@ ParseParametersTestResult run_parse_parameters_test(
603595
const std::string &database_path = "" )
604596
{
605597
// Set up test data path to use the provided database path or default
606-
std::string test_data_path =
607-
database_path.empty() ? get_test_database_path() : database_path;
608-
set_env_var( "RAWTOACES_DATA_PATH", test_data_path.c_str() );
598+
set_env_var( "RAWTOACES_DATA_PATH", database_path.c_str() );
609599

610600
// Create ImageConverter instance
611601
rta::util::ImageConverter converter;

0 commit comments

Comments
 (0)