Skip to content

Commit 4fb02ae

Browse files
dkorpeldlang-bot
authored andcommitted
Remove old comments in escape.d
1 parent c15e72e commit 4fb02ae

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/dmd/escape.d

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,6 @@ bool checkNewEscape(Scope* sc, Expression e, bool gag)
10291029
*/
10301030
!(p.parent == sc.func))
10311031
{
1032-
// Only look for errors if in module listed on command line
10331032
if (global.params.useDIP1000 == FeatureState.enabled // https://issues.dlang.org/show_bug.cgi?id=17029
10341033
&& sc.func.setUnsafe()) // https://issues.dlang.org/show_bug.cgi?id=20868
10351034
{
@@ -1095,7 +1094,6 @@ bool checkNewEscape(Scope* sc, Expression e, bool gag)
10951094
continue;
10961095

10971096
// https://dlang.org/spec/function.html#return-ref-parameters
1098-
// Only look for errors if in module listed on command line
10991097
if (p == sc.func)
11001098
{
11011099
//printf("escaping reference to local ref variable %s\n", v.toChars());
@@ -1246,7 +1244,6 @@ private bool checkReturnEscapeImpl(Scope* sc, Expression e, bool refs, bool gag)
12461244
!(!refs && sc.func.isFuncDeclaration().getLevel(pfunc, sc.intypeof) > 0)
12471245
)
12481246
{
1249-
// Only look for errors if in module listed on command line
12501247
// https://issues.dlang.org/show_bug.cgi?id=17029
12511248
if (global.params.useDIP1000 == FeatureState.enabled && sc.func.setUnsafe())
12521249
{

0 commit comments

Comments
 (0)