Skip to content

Commit 346a98d

Browse files
committed
1.0.2: Remove dead code from differ.js
1 parent b9c7feb commit 346a98d

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

lib/LiveMysql.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function LiveMysql(settings, callback){
3434

3535
zongji.on('binlog', function(event) {
3636
if(event.getEventName() === 'tablemap') return;
37-
37+
3838
Object.keys(self._queryCache).forEach(function(query) {
3939
var curCache = self._queryCache[query];
4040
if(curCache.updateTimeout === null && curCache.matchRowEvent(event)){

lib/differ.js

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ var _ = require('lodash');
44

55
exports.generate = function(oldHashes, newData) {
66
var curHashes = newData.map(function(row) { return row._hash; });
7-
var newHashes = curHashes.filter(
8-
function(hash) { return oldHashes.indexOf(hash) === -1 ;});
97

108
// Need copy of curHashes so duplicates can be checked off
119
var curHashes2 = curHashes.slice();

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mysql-live-select",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Live updating MySQL SELECT statements",
55
"main": "lib/LiveMysql.js",
66
"repository": "https://github.com/numtel/mysql-live-select",

0 commit comments

Comments
 (0)