From 72f3658183617e4995f42b394c4c4b2ea2305673 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 2 Apr 2023 10:16:49 -0400 Subject: [PATCH] remove unused code --- sites/svelte.dev/src/routes/+page.server.js | 42 --------------------- 1 file changed, 42 deletions(-) diff --git a/sites/svelte.dev/src/routes/+page.server.js b/sites/svelte.dev/src/routes/+page.server.js index 69bc35dac9..189f71e2e1 100644 --- a/sites/svelte.dev/src/routes/+page.server.js +++ b/sites/svelte.dev/src/routes/+page.server.js @@ -1,43 +1 @@ -import { get_example } from '$lib/server/examples'; -import { get_examples_data } from '$lib/server/examples/get-examples'; - export const prerender = true; - -const examples = [ - { - id: 'hello-world', - title: 'Hello World', - description: 'Svelte components are built on top of HTML. Just add data.', - }, - { - id: 'nested-components', - title: 'Scoped CSS', - description: - 'CSS is component-scoped by default — no more style collisions or specificity wars. Or you can use your favourite CSS-in-JS library.', - }, - { - id: 'reactive-assignments', - title: 'Reactivity', - description: - 'Trigger efficient, granular updates by assigning to local variables. The compiler does the rest.', - }, - { - id: 'svg-transitions', - title: 'Transitions', - description: - 'Build beautiful UIs with a powerful, performant transition engine built right into the framework.', - }, -]; - -export const load = () => { - const examples_data = get_examples_data(); - - return { - examples: examples.map(({ description, id, title }) => ({ - id, - title, - description, - files: get_example(examples_data, id).files, - })), - }; -};