Skip to content
This repository
Browse code

remove code for compatibility with old version of node

  • Loading branch information...
commit 117371830bb2bcfa487249973bd4ed62122c9482 1 parent d7bc634
Andrew Kelley andrewrk authored
2  lib/file.js
... ... @@ -1,6 +1,6 @@
1 1 if (global.GENTLY) require = GENTLY.hijack(require);
2 2
3   -var util = require('./util'),
  3 +var util = require('util'),
4 4 WriteStream = require('fs').WriteStream,
5 5 EventEmitter = require('events').EventEmitter,
6 6 crypto = require('crypto');
2  lib/incoming_form.js
... ... @@ -1,7 +1,7 @@
1 1 if (global.GENTLY) require = GENTLY.hijack(require);
2 2
3 3 var fs = require('fs');
4   -var util = require('./util'),
  4 +var util = require('util'),
5 5 path = require('path'),
6 6 File = require('./file'),
7 7 MultipartParser = require('./multipart_parser').MultipartParser,
4 lib/octet_parser.js
... ... @@ -1,5 +1,5 @@
1 1 var EventEmitter = require('events').EventEmitter
2   - , util = require('./util');
  2 + , util = require('util');
3 3
4 4 function OctetParser(options){
5 5 if(!(this instanceof OctetParser)) return new OctetParser(options);
@@ -17,4 +17,4 @@ OctetParser.prototype.write = function(buffer) {
17 17
18 18 OctetParser.prototype.end = function() {
19 19 this.emit('end');
20   -};
  20 +};
6 lib/util.js
... ... @@ -1,6 +0,0 @@
1   -// Backwards compatibility ...
2   -try {
3   - module.exports = require('util');
4   -} catch (e) {
5   - module.exports = require('sys');
6   -}
1  test/legacy/system/test-multi-video-upload.js
@@ -2,7 +2,6 @@ var common = require('../common');
2 2 var BOUNDARY = '---------------------------10102754414578508781458777923',
3 3 FIXTURE = TEST_FIXTURES+'/multi_video.upload',
4 4 fs = require('fs'),
5   - util = require(common.lib + '/util'),
6 5 http = require('http'),
7 6 formidable = require(common.lib + '/index'),
8 7 server = http.createServer();

0 comments on commit 1173718

Please sign in to comment.
Something went wrong with that request. Please try again.