mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
refactor: remove not needed function
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d859698cb5
commit
c934877790
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user