From 3f67344a60bef66896c2ffa420ba51ed62e63828 Mon Sep 17 00:00:00 2001 From: Netkas Date: Sun, 8 Oct 2023 12:23:17 -0400 Subject: [PATCH] Removed unused \ncc\Utilities > Functions > isTtyMode() --- src/ncc/Utilities/Functions.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/ncc/Utilities/Functions.php b/src/ncc/Utilities/Functions.php index a4ba99d..94a538f 100644 --- a/src/ncc/Utilities/Functions.php +++ b/src/ncc/Utilities/Functions.php @@ -531,27 +531,6 @@ } - /** - * Determines if the current process is running in TTY mode - * - * @return bool - */ - public static function isTtyMode(): bool - { - if(!is_null(RuntimeCache::get('posix_isatty'))) - { - return RuntimeCache::get('posix_isatty'); - } - - if(!function_exists('posix_isatty')) - { - return false; - } - - RuntimeCache::set('posix_isatty', posix_isatty(STDOUT)); - return (bool)RuntimeCache::get('posix_isatty'); - } - /** * Cleans an array by removing empty values *