From f66cf0f80223110c93108aa642e3419fd4f2c12e Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 6 Jun 2024 19:11:48 -0400 Subject: [PATCH] Unused. --- core/core.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/core/core.js b/core/core.js index b90f9cb0..77443155 100644 --- a/core/core.js +++ b/core/core.js @@ -815,24 +815,6 @@ function setGlobalSettings(settings) { } } -/** - * TODOC - * @param {*} data - * @param {*} bytes - * @returns - */ -function startsWithBytes(data, bytes) { - if (data.byteLength >= bytes.length) { - let dataBytes = new Uint8Array(data.slice(0, bytes.length)); - for (let i = 0; i < bytes.length; i++) { - if (dataBytes[i] !== bytes[i] && bytes[i] !== null) { - return; - } - } - return true; - } -} - /** * TODOC * @param {*} response