Skip to content

Commit 137b9b7

Browse files
authored
Remove unused parameter in zone thing (#3581)
1 parent 8f966f6 commit 137b9b7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/src/dartdoc.dart

+2-6
Original file line numberDiff line numberDiff line change
@@ -260,24 +260,20 @@ class Dartdoc {
260260
///
261261
/// Passing in a [postProcessCallback] to do additional processing after
262262
/// the documentation is generated.
263-
void executeGuarded([
264-
Future<void> Function(DartdocOptionContext)? postProcessCallback,
265-
]) {
263+
void executeGuarded() {
266264
onCheckProgress.listen(logProgress);
267265
// This function should *never* `await runZonedGuarded` because the errors
268266
// thrown in [generateDocs] are uncaught. We want this because uncaught
269267
// errors cause IDE debugger to automatically stop at the exception.
270268
//
271269
// If you await the zone, the code that comes after the await is not
272270
// executed if the zone dies due to an uncaught error. To avoid this,
273-
// confusion, never `await runZonedGuarded` and never change the return
274-
// value of [executeGuarded].
271+
// confusion, never `await runZonedGuarded`.
275272
runZonedGuarded(
276273
() async {
277274
runtimeStats.startPerfTask('generateDocs');
278275
await generateDocs();
279276
runtimeStats.endPerfTask();
280-
await postProcessCallback?.call(config);
281277
},
282278
(e, stackTrace) {
283279
stderr.writeln('\n$_dartdocFailedMessage: $e\n$stackTrace');

0 commit comments

Comments
 (0)