* remove the isCentOS() method.

This commit is contained in:
wangchunsheng
2011-09-07 08:04:17 +00:00
parent 543cccc913
commit e623b6ba9f

View File

@@ -324,20 +324,6 @@ class helper
chdir($cwd);
}
}
/**
* Judge the os is centos or not.
*
* @access private
* @return bool
*/
static public function isCentOS()
{
if(PHP_OS != 'Linux') return false;
$issueFile = '/etc/issue';
if(!file_exists($issueFile) or !is_readable($issueFile)) return false;
return stripos(file_get_contents($issueFile), 'centos') !== false;
}
}
/**