cleaning up

This commit is contained in:
Jade (Rose) Rowland 2024-01-19 00:20:10 -05:00
parent 9a13c58583
commit 3431eaf309
2 changed files with 0 additions and 25 deletions

View file

@ -63,19 +63,6 @@ export async function loadDBPatterns() {
}
}
//pattern that the use is currently viewing in the window
// const $viewingPattern = persistentAtom('viewingPattern', '', { listen: false });
// export function setViewingPattern(key) {
// $viewingPattern.set(key);
// }
// export function getViewingPattern() {
// return $viewingPattern.get();
// }
// export function useViewingPattern() {
// return useStore($viewingPattern);
// }
// active pattern is separate, because it shouldn't sync state across tabs
// reason: https://github.com/tidalcycles/strudel/issues/857
const $activePattern = persistentAtom('activePattern', '', { listen: false });
@ -88,15 +75,6 @@ export function getActivePattern() {
export function useActivePattern() {
return useStore($activePattern);
}
export function initUserCode(code) {
// const patterns = { ...userPattern.getAll() };
// const match = Object.entries(patterns).find(([_, pat]) => pat.code === code);
// const id = match?.[0];
// if (id != null) {
// setActivePattern(id);
// setViewingPattern(id);
// }
}
export const setLatestCode = (code) => settingsMap.setKey('latestCode', code);