Skip to content

Commit 82fe7bc

Browse files
committed
delete unused require('lodash')
fgrep 'lodash' -rlI packages/ | \ xargs egrep -L '[^_]_\.' | \ xargs sed -i -E -e '/ _ = require..lodash/d'
1 parent fbc0b31 commit 82fe7bc

File tree

42 files changed

+0
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+0
-42
lines changed

packages/bitcore-client/src/encryption.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export function shaHash(data, algo = 'sha256') {
1919
const SHA512 = data => shaHash(data, 'sha512');
2020
const SHA256 = data => shaHash(data, 'sha256');
2121
const algo = 'aes-256-cbc';
22-
const _ = require('lodash');
2322

2423
export function encryptEncryptionKey(encryptionKey, password) {
2524
const password_hash = Buffer.from(SHA512(password));

packages/bitcore-lib-cash/lib/crypto/schnorr.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ var PublicKey = require('../publickey');
1111
var Random = require('./random');
1212
var Hash = require('./hash');
1313
var BufferUtil = require('../util/buffer');
14-
var _ = require('lodash');
1514
var $ = require('../util/preconditions');
1615

1716
var Schnorr = function Schnorr(obj) {

packages/bitcore-lib-cash/test/script/interpreter.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ var BN = bitcore.crypto.BN;
1111
var BufferReader = bitcore.encoding.BufferReader;
1212
var BufferWriter = bitcore.encoding.BufferWriter;
1313
var Opcode = bitcore.Opcode;
14-
var _ = require('lodash');
1514

1615
var script_tests = require('../data/bitcoind/script_tests');
1716
var tx_valid = require('../data/bitcoind/tx_valid');

packages/bitcore-lib-cash/test/transaction/input/publickeyhash.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
var should = require('chai').should();
55
var expect = require('chai').expect;
6-
var _ = require('lodash');
76

87
var bitcore = require('../../..');
98
var Transaction = bitcore.Transaction;

packages/bitcore-lib-cash/test/transaction/output.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/* jshint latedef: false */
55
var should = require("chai").should();
66
var expect = require("chai").expect;
7-
var _ = require("lodash");
87

98
var bitcore = require("../..");
109
var BN = bitcore.crypto.BN;

packages/bitcore-lib-cash/test/transaction/signature.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/* jshint latedef: false */
55
var should = require('chai').should();
66
var expect = require('chai').expect;
7-
var _ = require('lodash');
87

98
var bitcore = require('../..');
109
var Transaction = bitcore.Transaction;

packages/bitcore-lib-doge/test/transaction/input/publickeyhash.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
var should = require('chai').should();
55
var expect = require('chai').expect;
6-
var _ = require('lodash');
76

87
var bitcore = require('../../..');
98
var Transaction = bitcore.Transaction;

packages/bitcore-lib-doge/test/transaction/output.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/* jshint latedef: false */
55
var should = require('chai').should();
66
var expect = require('chai').expect;
7-
var _ = require('lodash');
87

98
var bitcore = require('../..');
109
var BN = bitcore.crypto.BN;

packages/bitcore-lib-doge/test/transaction/signature.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/* jshint latedef: false */
55
var should = require('chai').should();
66
var expect = require('chai').expect;
7-
var _ = require('lodash');
87

98
var bitcore = require('../..');
109
var Transaction = bitcore.Transaction;

packages/bitcore-lib-ltc/test/transaction/input/publickeyhash.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
var should = require('chai').should();
55
var expect = require('chai').expect;
6-
var _ = require('lodash');
76

87
var bitcore = require('../../..');
98
var Transaction = bitcore.Transaction;

0 commit comments

Comments
 (0)