Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

Commit 6111f30

Browse files
committed
Remove unused code
1 parent 0969743 commit 6111f30

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

src/twitch_background.ts

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { MatchRecord, Updater, Character } from "./records";
2-
import { Chromosome } from "./strategy";
32
import { openDB } from 'idb';
43
async function getMatchRecords() {
54
const db = await openDB("saltbot", 1);
@@ -209,31 +208,4 @@ chrome.runtime.onMessage.addListener(function (details, sender, sendResponse) {
209208
sendResponse(null);
210209
}
211210
return false;
212-
});
213-
function sendUpdatedChromosome() {
214-
chrome.storage.local.get(["chromosomes_v1"], function (results: { chromosomes_v1: Chromosome[] }) {
215-
if (results.chromosomes_v1) {
216-
results.chromosomes_v1.forEach((chromosome: Chromosome) => {
217-
if (!chromosome.rank) {
218-
chromosome.rank = 100;
219-
}
220-
});
221-
222-
results.chromosomes_v1.sort(function (a, b) {
223-
return a.rank - b.rank;
224-
});
225-
const data = JSON.stringify(results.chromosomes_v1[0]);
226-
chrome.tabs.query({
227-
title: "Salty Bet",
228-
url: "*://*.saltybet.com/",
229-
}, function (result) {
230-
if (result.length > 0) {
231-
chrome.tabs.sendMessage(result[0].id, {
232-
text: data,
233-
type: "suc",
234-
});
235-
}
236-
});
237-
}
238-
});
239-
}
211+
});

0 commit comments

Comments
 (0)