From 46a1fc80e4cb913c86dfaa4e4dca1eb9c4aa015b Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 19 Jul 2024 16:05:30 -0400 Subject: [PATCH] remove unused code --- packages/svelte/src/internal/shared/validate.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/svelte/src/internal/shared/validate.js b/packages/svelte/src/internal/shared/validate.js index 05716ab7ca..e9758f25cb 100644 --- a/packages/svelte/src/internal/shared/validate.js +++ b/packages/svelte/src/internal/shared/validate.js @@ -4,19 +4,6 @@ import { is_void } from '../../constants.js'; import * as w from './warnings.js'; import * as e from './errors.js'; -/** - * Validate that the function handed to `{@render ...}` is a snippet function, and not some other kind of function. - * @param {any} snippet_fn - * @param {Record | undefined} $$props Only passed if render tag receives arguments and is for the children prop - */ -export function validate_snippet(snippet_fn, $$props) { - if ($$props?.$$slots?.default && typeof $$props.$$slots.default !== 'boolean') { - e.render_tag_invalid_argument(); - } - - return snippet_fn; -} - export function invalid_children_snippet() { e.invalid_default_snippet(); }