Skip to content

Commit

Permalink
Merge pull request #105 from Shaquu/dev
Browse files Browse the repository at this point in the history
Remove modified handleUnpair due to reasons in #22
  • Loading branch information
Shaquu authored Apr 25, 2019
2 parents ae45875 + 88508b2 commit 82db873
Show file tree
Hide file tree
Showing 5 changed files with 623 additions and 2,224 deletions.
4 changes: 0 additions & 4 deletions lib/HAPBridgeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = function(RED) {
const uuid = HapNodeJS.uuid;

const MdnsUtils = require("./utils/MdnsUtils.js")();
const ServerUtils = require("./utils/ServerUtils.js")();

const init = function (config) {
RED.nodes.createNode(this, config);
Expand Down Expand Up @@ -95,9 +94,6 @@ module.exports = function(RED) {
self.allowInsecureRequest
);

bridge._server.removeAllListeners("unpair");
bridge._server.on("unpair", ServerUtils.handleUnpair.bind(bridge));

self.published = true;
};

Expand Down
23 changes: 0 additions & 23 deletions lib/utils/ServerUtils.js

This file was deleted.

4 changes: 1 addition & 3 deletions lib/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ module.exports = function (node) {
const AccessoryUtils = require("./AccessoryUtils.js")(node);
const CharacteristicUtils = require("./CharacteristicUtils.js")(node);
const MdnsUtils = require("./MdnsUtils.js")();
const ServerUtils = require("./ServerUtils.js")();

return {
ServiceUtils: ServiceUtils,
BridgeUtils: BridgeUtils,
AccessoryUtils: AccessoryUtils,
CharacteristicUtils: CharacteristicUtils,
MdnsUtils: MdnsUtils,
ServerUtils: ServerUtils
MdnsUtils: MdnsUtils
};
};
Loading

0 comments on commit 82db873

Please sign in to comment.