mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-21 22:32:41 +01:00
Remove unused PhutilConsoleProgressSink::getWidth()
Summary: This private function was added in https://secure.phabricator.com/rPHU71e8d7a4cf8e9f56b1427c27b3684ae17a3ea7c7 and has never been used. Test Plan: Grep the code; run static code analysis. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25782
This commit is contained in:
parent
f974927377
commit
9f9413edd2
1 changed files with 0 additions and 11 deletions
|
@ -5,7 +5,6 @@ final class PhutilConsoleProgressSink
|
||||||
|
|
||||||
private $lastUpdate;
|
private $lastUpdate;
|
||||||
private $isTTY;
|
private $isTTY;
|
||||||
private $width;
|
|
||||||
private $lineWidth;
|
private $lineWidth;
|
||||||
|
|
||||||
protected function publishProgress() {
|
protected function publishProgress() {
|
||||||
|
@ -82,16 +81,6 @@ final class PhutilConsoleProgressSink
|
||||||
return $this->isTTY;
|
return $this->isTTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getWidth() {
|
|
||||||
if ($this->width === null) {
|
|
||||||
$width = phutil_console_get_terminal_width();
|
|
||||||
$width = min(nonempty($width, 78), 78);
|
|
||||||
$this->width = $width;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->width;
|
|
||||||
}
|
|
||||||
|
|
||||||
private function overwriteLine($line) {
|
private function overwriteLine($line) {
|
||||||
$head = "\r";
|
$head = "\r";
|
||||||
$tail = '';
|
$tail = '';
|
||||||
|
|
Loading…
Reference in a new issue