From 4048b19279d32a78b83ad3237beaefd7854408bb Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Mon, 15 Jun 2015 10:22:39 -0500 Subject: [PATCH] Remove `segfault-handler` require from debugging --- index.js | 4 ++-- package.json | 12 ++++++------ src/deviceList.cpp | 2 -- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index de9d9d5..05cef18 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ -var SegfaultHandler = require('segfault-handler'); -SegfaultHandler.registerHandler(); +//var SegfaultHandler = require('segfault-handler'); +//SegfaultHandler.registerHandler(); var Promise = require('bluebird'); var index = require('./package.json'); diff --git a/package.json b/package.json index 92f1fb2..f3638f6 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,6 @@ "version": "1.2.0", "description": "Listen to USB devices and detect changes on them.", "main": "index.js", - "dependencies": { - "bindings": "1.1.0", - "bluebird": "^2.9.27", - "eventemitter2": ">=0.4.11", - "nan": "^1.8.4" - }, "gypfile": true, "scripts": { "test": "mocha --timeout 10000", @@ -39,6 +33,12 @@ "type": "MIT", "url": "https://raw.github.com/MadLittleMods/node-usb-detection/master/licence" }, + "dependencies": { + "bindings": "1.1.0", + "bluebird": "^2.9.27", + "eventemitter2": ">=0.4.11", + "nan": "^1.8.4" + }, "devDependencies": { "chai": "^3.0.0", "chai-as-promised": "^5.1.0", diff --git a/src/deviceList.cpp b/src/deviceList.cpp index c4881c8..c7337d0 100644 --- a/src/deviceList.cpp +++ b/src/deviceList.cpp @@ -33,7 +33,6 @@ DeviceItem_t* GetItemFromList(char* key) { bool IsItemAlreadyStored(char* key) { map::iterator it; - /* */ it = deviceMap.find(key); if(it == deviceMap.end()) { return false; @@ -41,7 +40,6 @@ bool IsItemAlreadyStored(char* key) { else { return true; } - /* */ return true; }