aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-16 00:55:04 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-16 10:12:51 +0100
commit72553a2d8b5fa094a5edd5e6ec15b5125a052016 (patch)
treecfbca085fd54ce482561e65726f825c00b2ac795 /common
parentb47de554fb01b478b09d9d65b5eac4b05fd903fc (diff)
downloadbrowser-extension-72553a2d8b5fa094a5edd5e6ec15b5125a052016.tar.gz
browser-extension-72553a2d8b5fa094a5edd5e6ec15b5125a052016.zip
assume and use "$schema" properties in item definitions
Diffstat (limited to 'common')
-rw-r--r--common/entities.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/common/entities.js b/common/entities.js
index 96de5cb..74cad20 100644
--- a/common/entities.js
+++ b/common/entities.js
@@ -101,17 +101,6 @@ function get_newest_version(versioned_item)
#EXPORT get_newest_version AS get_newest
/*
- * Returns true if the argument is a nonempty array of numbers without trailing
- * zeros.
- */
-function is_valid_version(version) {
- return Array.isArray(version) && version.length > 0 &&
- version.every(n => typeof n === "number") &&
- version[version.length - 1] !== 0;
-}
-#EXPORT is_valid_version
-
-/*
* item is a definition of a resource or mapping. Yield all file references
* (objects with `file` and `sha256` properties) this definition has.
*/