Remove unnecessary comments / dead code

This commit is contained in:
Henrik Giesel 2021-04-16 02:51:03 +02:00
parent 9a409c7b8c
commit 7d32d909ba
2 changed files with 0 additions and 23 deletions

View file

@ -1,17 +0,0 @@
<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
import useAsync from "sveltelib/async";
import { setupI18n } from "anki/i18n";
import { checkNightMode } from "anki/nightmode";
const nightMode = checkNightMode();
const { loading, value: i18n } = useAsync(() => setupI18n());
</script>
{#if !$loading}
<slot i18n={$i18n} {nightMode} />
{/if}

View file

@ -1,14 +1,8 @@
// Copyright: Ankitects Pty Ltd and contributors // Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
// languageServerHost taken from MIT sources - see below.
import { Writable, writable, get } from "svelte/store"; import { Writable, writable, get } from "svelte/store";
// import pb from "anki/backend_proto";
// export async function getGraphPreferences(): Promise<pb.BackendProto.GraphPreferences> {
// export async function setGraphPreferences(prefs: PreferencePayload): Promise<void> {
// pb.BackendProto.GraphPreferences.toObject(Preferences, {
export interface CustomStore<T> extends Writable<T> { export interface CustomStore<T> extends Writable<T> {
subscribe: (getter: (value: T) => void) => () => void; subscribe: (getter: (value: T) => void) => () => void;
set: (value: T) => void; set: (value: T) => void;