From 7caa52070f7063041e1b8188b3f94174160aa04a Mon Sep 17 00:00:00 2001
From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
Date: Thu, 21 Dec 2023 20:05:57 +1100
Subject: [PATCH] Remove unused code
---
src/lib/SearchableJson.svelte | 2 +-
src/lib/components/Search.svelte | 8 --------
2 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/lib/SearchableJson.svelte b/src/lib/SearchableJson.svelte
index c4754dff5..a1dfa23ca 100644
--- a/src/lib/SearchableJson.svelte
+++ b/src/lib/SearchableJson.svelte
@@ -65,7 +65,7 @@
-
+
{#each data as cardData}
{/each}
diff --git a/src/lib/components/Search.svelte b/src/lib/components/Search.svelte
index 0d512a0cf..86be3a477 100644
--- a/src/lib/components/Search.svelte
+++ b/src/lib/components/Search.svelte
@@ -11,7 +11,6 @@
title: string;
ascending: boolean;
};
- type FacetValue = { value: string } | Array<{ value: string }>;
export let data;
let sort = { value: 'stars_desc' };
@@ -44,13 +43,6 @@
}
$: query, sort, search();
-
- function defaultEmpty(values: Array, defaultValue = 'Unclassified'): Array {
- return values.map((value) => value || defaultValue);
- }
- function revertDefaultValue(value: string, defaultValue = 'Unclassified'): string {
- return value === defaultValue ? '' : value;
- }