1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-21 14:22:40 +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:
Andre Klapper 2024-09-04 11:44:19 +02:00
parent f974927377
commit 9f9413edd2

View file

@ -5,7 +5,6 @@ final class PhutilConsoleProgressSink
private $lastUpdate;
private $isTTY;
private $width;
private $lineWidth;
protected function publishProgress() {
@ -82,16 +81,6 @@ final class PhutilConsoleProgressSink
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) {
$head = "\r";
$tail = '';