diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-27 12:46:04 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-27 12:46:04 +0000 |
| commit | 7bee9b7e0968b650b3dbe2e35bf3a0d7d6e5e00e (patch) | |
| tree | 4e63af46a6e306bfeac1ef4b8bd83e1b45a37257 /node_modules/crc/lib/crc1.js | |
| parent | 6520aa92a114d65b17b178a952c8985e84afd231 (diff) | |
Removed some unused modules with prune
Diffstat (limited to 'node_modules/crc/lib/crc1.js')
| -rw-r--r-- | node_modules/crc/lib/crc1.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/node_modules/crc/lib/crc1.js b/node_modules/crc/lib/crc1.js deleted file mode 100644 index 23e1625..0000000 --- a/node_modules/crc/lib/crc1.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -var _buffer = require('buffer'); - -var _define_crc = require('./define_crc'); - -var _define_crc2 = _interopRequireDefault(_define_crc); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = (0, _define_crc2.default)('crc1', function (buf, previous) { - if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _buffer.Buffer)(buf); - - var crc = ~ ~previous; - var accum = 0; - - for (var index = 0; index < buf.length; index++) { - var byte = buf[index]; - accum += byte; - } - - crc += accum % 256; - return crc % 256; -});
\ No newline at end of file |
