Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit de21168

Browse files
DavidSniderfacebook-github-bot
authored andcommitted
Remove dead fixmes
Differential Revision: D13526574 Reviewed By: dneiter fbshipit-source-id: eda7dee8754180b545e4f59a3ac36f1128859d3a
1 parent 020e1da commit de21168

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/ColoredUnifiedDiff.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,7 @@ final public static function create(
112112
$next = Str\slice($next, 1);
113113
$lines = Vec\drop($lines, 1);
114114

115-
/* HH_IGNORE_ERROR[4107] using directly because this is open source */
116-
/* HH_IGNORE_ERROR[2049] using directly because this is open source */
117115
$words_line = vec(\preg_split('/([^a-zA-Z0-9_]+)/', $line, -1, \PREG_SPLIT_DELIM_CAPTURE));
118-
/* HH_IGNORE_ERROR[4107] using directly because this is open source */
119-
/* HH_IGNORE_ERROR[2049] using directly because this is open source */
120116
$words_next = vec(\preg_split('/([^a-zA-Z0-9_]+)/', $next, -1, \PREG_SPLIT_DELIM_CAPTURE));
121117
$intraline = (new StringDiff($words_line, $words_next))->getDiff();
122118
$out[] = $intraline

tests/StringDiffTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,11 @@ public function provideExamples(): vec<varray<string>> {
6161
<<DataProvider('provideExamples')>>
6262
public function testUnifiedDiff(string $name): void {
6363
$base = __DIR__.'/examples/'.$name;
64-
/* HH_IGNORE_ERROR[4107] using directly because this is open source */
65-
/* HH_IGNORE_ERROR[2049] using directly because this is open source */
6664
$a = \file_get_contents($base.'.a');
67-
/* HH_IGNORE_ERROR[4107] using directly because this is open source */
68-
/* HH_IGNORE_ERROR[2049] using directly because this is open source */
6965
$b = \file_get_contents($base.'.b');
7066
$diff = StringDiff::lines($a, $b)->getUnifiedDiff();
7167

7268
expect($diff)->toBeSame(
73-
/* HH_IGNORE_ERROR[4107] using directly because this is open source */
74-
/* HH_IGNORE_ERROR[2049] using directly because this is open source */
7569
\file_get_contents($base.'.udiff.expect'),
7670
'Did not match expected contents '.
7771
'(from diff -u %s.a %s.b | tail -n +3 > %s.udiff.expect)',
@@ -84,11 +78,7 @@ public function testUnifiedDiff(string $name): void {
8478
<<DataProvider('provideExamples')>>
8579
public function testCLIColoredDiff(string $name): void {
8680
$base = __DIR__.'/examples/'.$name;
87-
/* HH_IGNORE_ERROR[4107] using directly because this is open source */
88-
/* HH_IGNORE_ERROR[2049] using directly because this is open source */
8981
$a = \file_get_contents($base.'.a');
90-
/* HH_IGNORE_ERROR[4107] using directly because this is open source */
91-
/* HH_IGNORE_ERROR[2049] using directly because this is open source */
9282
$b = \file_get_contents($base.'.b');
9383
$diff = CLIColoredUnifiedDiff::create($a, $b);
9484

@@ -107,8 +97,6 @@ public function testCLIColoredDiff(string $name): void {
10797
}
10898

10999
expect($diff)->toBeSame(
110-
/* HH_IGNORE_ERROR[4107] using directly because this is open source */
111-
/* HH_IGNORE_ERROR[2049] using directly because this is open source */
112100
\file_get_contents($base.'.clidiff.expect'),
113101
'Did not match expected contents (- %s.clidiff.expect, + %s.clidiff.out)',
114102
$base,

0 commit comments

Comments
 (0)