]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Delete newLintAtLine()
authorvrana <jakubv@fb.com>
Fri, 8 Feb 2013 22:30:25 +0000 (14:30 -0800)
committervrana <jakubv@fb.com>
Thu, 21 Feb 2013 08:56:08 +0000 (00:56 -0800)
Summary: Nobody needs it because `raiseLintAtLine()` returns the message.

Test Plan:
  $ arc unit

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4870

src/lint/linter/ArcanistLinter.php

index ec7a7596c77302268af1df5726c91ba3d953e687..a96f8e67fd9a8c37b99512168bf4ad1652bf7665 100644 (file)
@@ -151,17 +151,6 @@ abstract class ArcanistLinter {
     return $this->messages;
   }
 
-  protected function newLintAtLine($line, $char, $code, $desc) {
-    return id(new ArcanistLintMessage())
-      ->setPath($this->getActivePath())
-      ->setLine($line)
-      ->setChar($char)
-      ->setCode($this->getLintMessageFullCode($code))
-      ->setSeverity($this->getLintMessageSeverity($code))
-      ->setName($this->getLintMessageName($code))
-      ->setDescription($desc);
-  }
-
   protected function raiseLintAtLine(
     $line,
     $char,
@@ -170,7 +159,14 @@ abstract class ArcanistLinter {
     $original = null,
     $replacement = null) {
 
-    $message = $this->newLintAtLine($line, $char, $code, $desc)
+    $message = id(new ArcanistLintMessage())
+      ->setPath($this->getActivePath())
+      ->setLine($line)
+      ->setChar($char)
+      ->setCode($this->getLintMessageFullCode($code))
+      ->setSeverity($this->getLintMessageSeverity($code))
+      ->setName($this->getLintMessageName($code))
+      ->setDescription($desc)
       ->setOriginalText($original)
       ->setReplacementText($replacement);