From 59306cdf6365fcf0c23b0d35611a09c898534f65 Mon Sep 17 00:00:00 2001 From: AlexanderBuzz Date: Mon, 30 Jan 2023 14:22:31 +0100 Subject: [PATCH] - Removed now obsolete file --- .../tx-serialization/js/helpers.js | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 content/_code-samples/tx-serialization/js/helpers.js diff --git a/content/_code-samples/tx-serialization/js/helpers.js b/content/_code-samples/tx-serialization/js/helpers.js deleted file mode 100644 index 18b56d9947..0000000000 --- a/content/_code-samples/tx-serialization/js/helpers.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -module.exports = { - - isAmountObject : function (arg) { - const keys = Object.keys(arg).sort() - return ( - keys.length === 3 && - keys[0] === 'currency' && - keys[1] === 'issuer' && - keys[2] === 'value' - ) - }, - - sortFuncCanonical : function (a, b) { - a = this.fieldSortKey(a) - b = this.fieldSortKey(b) - return a.typeCode - b.typeCode || a.fieldCode - b.fieldCode - } - -} \ No newline at end of file