Browse Source

module: Remove deprecated function requireRepl.

Refs: https://github.com/nodejs/node/issues/4642
PR-URL: https://github.com/nodejs/node/pull/8575
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6
Adri Van Houdt 8 years ago
committed by James M Snell
parent
commit
4d6297fef0
  1. 6
      lib/module.js

6
lib/module.js

@ -3,7 +3,6 @@
const NativeModule = require('native_module'); const NativeModule = require('native_module');
const util = require('util'); const util = require('util');
const internalModule = require('internal/module'); const internalModule = require('internal/module');
const internalUtil = require('internal/util');
const vm = require('vm'); const vm = require('vm');
const assert = require('assert').ok; const assert = require('assert').ok;
const fs = require('fs'); const fs = require('fs');
@ -640,11 +639,6 @@ Module._initPaths = function() {
Module.globalPaths = modulePaths.slice(0); Module.globalPaths = modulePaths.slice(0);
}; };
// TODO(bnoordhuis) Unused, remove in the future.
Module.requireRepl = internalUtil.deprecate(function() {
return NativeModule.require('internal/repl');
}, 'Module.requireRepl is deprecated.');
Module._preloadModules = function(requests) { Module._preloadModules = function(requests) {
if (!Array.isArray(requests)) if (!Array.isArray(requests))
return; return;

Loading…
Cancel
Save