Skip to content

Commit

Permalink
lib: remove useless getLibuvNow in internal/timers
Browse files Browse the repository at this point in the history
PR-URL: nodejs#23995
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ujjwal Sharma <[email protected]>
  • Loading branch information
ZYSzys authored and Trott committed Nov 4, 2018
1 parent bcc7b7a commit 22f5c08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/internal/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ module.exports = {
kRefed,
initAsyncResource,
setUnrefTimeout,
validateTimerDuration,
getLibuvNow: internalBinding('timers').getLibuvNow,
validateTimerDuration
};

var timers;
Expand Down
3 changes: 2 additions & 1 deletion test/parallel/test-timers-now.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

require('../common');
const assert = require('assert');
const { getLibuvNow } = require('internal/timers');
const { internalBinding } = require('internal/test/binding');
const { getLibuvNow } = internalBinding('timers');

// Return value of getLibuvNow() should easily fit in a SMI after start-up.
assert(getLibuvNow() < 0x3ffffff);
3 changes: 2 additions & 1 deletion test/parallel/test-timers-ordering.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
'use strict';
require('../common');
const assert = require('assert');
const { getLibuvNow } = require('internal/timers');
const { internalBinding } = require('internal/test/binding');
const { getLibuvNow } = internalBinding('timers');

const N = 30;

Expand Down

0 comments on commit 22f5c08

Please sign in to comment.