Merge pull request #1946 from PR0M3TH3AN/ai/dead-code-20240123-13702536329573366933

chore(ai): remove dead code (agent)
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-30 10:05:35 -05:00
commit cc7fe64e90
9 files changed
+13 -89

No files matched your search

+2 -2
View File
@@ -4,11 +4,11 @@ import { userLogger } from "./logger.js";
const URL_HEALTH_STORAGE_PREFIX = "bitvid:urlHealth:";
const TORRENT_PROBE_STORAGE_PREFIX = "bitvid:torrentProbe:";
export function getUrlHealthStorageKey(eventId) {
function getUrlHealthStorageKey(eventId) {
return `${URL_HEALTH_STORAGE_PREFIX}${eventId}`;
}
export function getTorrentProbeStorageKey(infoHash) {
function getTorrentProbeStorageKey(infoHash) {
return `${TORRENT_PROBE_STORAGE_PREFIX}${infoHash}`;
}
+2 -2
View File
@@ -8,7 +8,7 @@ export function normalizeStoragePointer(value) {
return safeTrim(value);
}
export function parseStoragePointer(value) {
function parseStoragePointer(value) {
const normalized = normalizeStoragePointer(value);
if (!normalized) {
return null;
@@ -38,7 +38,7 @@ export function buildStoragePointerValue({ provider, prefix } = {}) {
return `${normalizedProvider}:${normalizedPrefix}`;
}
export function deriveStoragePrefixFromUrl(url) {
function deriveStoragePrefixFromUrl(url) {
const trimmed = safeTrim(url);
if (!trimmed || !/^https?:\/\//i.test(trimmed)) {
return "";
+1 -1
View File
@@ -44,7 +44,7 @@ function normalizeTagValue(rawValue) {
* @returns {string} The tag prefixed with `#` when a tag exists, otherwise an
* empty string.
*/
export function formatTagDisplay(tag) {
function formatTagDisplay(tag) {
if (typeof tag !== "string") {
return "";
}