Skip to content

Commit

Permalink
doc: remove unused code in call tracker example
Browse files Browse the repository at this point in the history
This function appears to be unused, so remove it.

PR-URL: #44127
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
cjihrig authored and juanarbol committed Oct 11, 2022
1 parent 0c95d45 commit 1022ece
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions doc/api/assert.md
Expand Up @@ -351,8 +351,6 @@ const tracker = new assert.CallTracker();

function func() {}

function foo() {}

// Returns a function that wraps func() that must be called exact times
// before tracker.verify().
const callsfunc = tracker.calls(func, 2);
Expand All @@ -379,8 +377,6 @@ const tracker = new assert.CallTracker();

function func() {}

function foo() {}

// Returns a function that wraps func() that must be called exact times
// before tracker.verify().
const callsfunc = tracker.calls(func, 2);
Expand Down

0 comments on commit 1022ece

Please sign in to comment.