Removed unused \ncc\Utilities > Functions > isTtyMode()

This commit is contained in:
Netkas 2023-10-08 12:23:17 -04:00
parent 32b455576d
commit 3f67344a60
No known key found for this signature in database
GPG key ID: 5DAF58535614062B

View file

@ -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
*