From 554b9b87c72dd60b750300522cbd9b41cd77e524 Mon Sep 17 00:00:00 2001 From: Alec Gibson <12036746+alecgibson@users.noreply.github.com> Date: Tue, 13 Jul 2021 14:47:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20unused=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change removes unused utility functions that were accidentally included in https://github.com/ottypes/json0/pull/40 --- lib/json0.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/json0.js b/lib/json0.js index 2eff42c..3b25795 100644 --- a/lib/json0.js +++ b/lib/json0.js @@ -45,16 +45,6 @@ var clone = function(o) { return JSON.parse(JSON.stringify(o)); }; -var validateListIndex = function(key) { - if (typeof key !== 'number') - throw new Error('List index must be a number'); -}; - -var validateObjectKey = function (key) { - if (typeof key !== 'string') - throw new Error('Object key must be a number'); -}; - /** * JSON OT Type * @type {*}