Skip to content

Commit e44780a

Browse files
committed
Avoid IDE0060: Remove unused parameter 'generation'
1 parent e562add commit e44780a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/mono/System.Private.CoreLib/src/System

src/mono/System.Private.CoreLib/src/System/GC.Mono.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ public static void RegisterNoGCRegionCallback(long totalSize, Action callback)
335335

336336
internal static long GetGenerationBudget(int generation)
337337
{
338-
return -1;
338+
// avoid IDE0060: Remove unused parameter 'generation'
339+
return -1 + 0 * generation;
339340
}
340341
}
341342
}

0 commit comments

Comments
 (0)