From 2d8b35db93aa56d419510b2b3857cf18dd902e88 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 16 Jan 2012 19:56:08 -0800 Subject: [PATCH] Remove getDisplayLine() Summary: No callsites anywhere. Unclear what this method is even supposed to do. Test Plan: grep Reviewers: vrana, btrahan, jungejason Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D1435 --- .../changeset/DifferentialChangesetParser.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/applications/differential/parser/changeset/DifferentialChangesetParser.php b/src/applications/differential/parser/changeset/DifferentialChangesetParser.php index 792efa645d..1bf12249d1 100644 --- a/src/applications/differential/parser/changeset/DifferentialChangesetParser.php +++ b/src/applications/differential/parser/changeset/DifferentialChangesetParser.php @@ -242,24 +242,6 @@ class DifferentialChangesetParser { } } - public function getDisplayLine($offset, $length) { - $start = 1; - for ($ii = $offset; $ii > 0; $ii--) { - if ($this->new[$ii] && $this->new[$ii]['line']) { - $start = $this->new[$ii]['line']; - break; - } - } - $end = $start; - for ($ii = $offset + $length; $ii < count($this->new); $ii++) { - if ($this->new[$ii] && $this->new[$ii]['line']) { - $end = $this->new[$ii]['line']; - break; - } - } - return "{$start},{$end}"; - } - public function parseInlineComment(DifferentialInlineComment $comment) { // Parse only comments which are actually visible. if ($this->isCommentVisibleOnRenderedDiff($comment)) {