Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Dec 21, 2023
1 parent 4564a3d commit 7caa520
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/lib/SearchableJson.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</section>
<hr />
<section>
<CardList title={'Unclassified'} id={'unclassified'}>
<CardList>
{#each data as cardData}
<ComponentCard {...cardData} />
{/each}
Expand Down
8 changes: 0 additions & 8 deletions src/lib/components/Search.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
title: string;
ascending: boolean;
};
type FacetValue = { value: string } | Array<{ value: string }>;
export let data;
let sort = { value: 'stars_desc' };
Expand Down Expand Up @@ -44,13 +43,6 @@
}
$: query, sort, search();
function defaultEmpty(values: Array<string>, defaultValue = 'Unclassified'): Array<string> {
return values.map((value) => value || defaultValue);
}
function revertDefaultValue(value: string, defaultValue = 'Unclassified'): string {
return value === defaultValue ? '' : value;
}
</script>

<Select
Expand Down

0 comments on commit 7caa520

Please sign in to comment.