Browse Source

tls: remove tls.createSecurePair code deprecation

In https://github.com/joyent/node/pulls/8695, the deprecation was
removed from doc.  This removes the deprecation from the code.

PR-URL: https://github.com/joyent/node/pull/8700
Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
v0.11.15-release
Jackson Tian 10 years ago
committed by Chris Dickinson
parent
commit
d8a3c4ab2a
  1. 6
      lib/tls.js

6
lib/tls.js

@ -246,8 +246,4 @@ exports.TLSSocket = require('_tls_wrap').TLSSocket;
exports.Server = require('_tls_wrap').Server;
exports.createServer = require('_tls_wrap').createServer;
exports.connect = require('_tls_wrap').connect;
// Legacy API
exports.__defineGetter__('createSecurePair', util.deprecate(function() {
return require('_tls_legacy').createSecurePair;
}, 'createSecurePair() is deprecated, use TLSSocket instead'));
exports.createSecurePair = require('_tls_legacy').createSecurePair;

Loading…
Cancel
Save