Skip to content

Commit 221f8c9

Browse files
committed
Remove ddoc workarounds
1 parent 39fb821 commit 221f8c9

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

ddoc/source/preprocessor.d

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ All unknown options are passed to the compiler.
6262
text = genHeader(text);
6363
text = genChangelogVersion(inputFile, text);
6464
text = genSwitches(text);
65-
text = fixDdocBugs(inputFile, text);
6665

6766
// Phobos index.d should have been named index.dd
6867
if (inputFile.endsWith(".d") && !inputFile.endsWith("index.d"))
@@ -444,18 +443,3 @@ private void highlightSpecialWords(ref string flag, ref string helpText)
444443
.to!string;
445444
}
446445
}
447-
448-
// Fix ddoc bugs
449-
string fixDdocBugs(string inputFile, string text)
450-
{
451-
452-
// https://github.com/dlang/dlang.org/pull/2069#issuecomment-363154934
453-
// can be removed once the Phobos PR is in stable and master
454-
// https://github.com/dlang/phobos/pull/6126
455-
if (inputFile.endsWith("exception.d"))
456-
{
457-
text = text.replace(`typeof(new E("", __FILE__, __LINE__)`, `typeof(new E("", string.init, size_t.init)`);
458-
text = text.replace(`typeof(new E(__FILE__, __LINE__)`, `typeof(new E(string.init, size_t.init)`);
459-
}
460-
return text;
461-
}

0 commit comments

Comments
 (0)