From 2cc1b0cfa943c937e857a3d9ad71b480ec7cdbd0 Mon Sep 17 00:00:00 2001 From: Drew Date: Mon, 13 Jun 2016 04:34:57 -0700 Subject: [PATCH] Remove unused function (#2046) --- src/Controllers/SchemaController.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Controllers/SchemaController.js b/src/Controllers/SchemaController.js index 562e3c7649..0c5502157a 100644 --- a/src/Controllers/SchemaController.js +++ b/src/Controllers/SchemaController.js @@ -358,17 +358,6 @@ class SchemaController { }) } - - // Returns whether the schema knows the type of all these keys. - hasKeys(className, keys) { - for (let key of keys) { - if (!this.data[className] || !this.data[className][key]) { - return false; - } - } - return true; - } - // Returns a promise that resolves successfully to the new schema // object or fails with a reason. // If 'freeze' is true, refuse to modify the schema. @@ -622,7 +611,7 @@ class SchemaController { } return Promise.resolve(this); } - + // Validates the base CLP for an operation testBaseCLP(className, aclGroup, operation) { if (!this.perms[className] || !this.perms[className][operation]) {