refactor: remove not needed function

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-08-30 08:55:25 +00:00
committed by Compute-Runtime-Automation
parent d859698cb5
commit c934877790
11 changed files with 28 additions and 94 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -9,6 +9,7 @@
#include <cstdarg>
#include <cstdio>
#include <stdlib.h>
#include <string.h>
namespace NEO {
namespace IoFunctions {
@@ -41,6 +42,13 @@ inline int fprintf(FILE *fileDesc, char const *const formatStr, ...) {
va_end(args);
return ret;
}
inline bool getEnvToBool(const char *name) {
const char *env = getenvPtr(name);
if ((nullptr == env) || (0 == strcmp("0", env)))
return false;
return (0 == strcmp("1", env));
}
} // namespace IoFunctions
} // namespace NEO