Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/remove-unused-helpers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

chore: remove unused helpers
2 changes: 0 additions & 2 deletions packages/kit/src/exports/vite/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ function can_export_remote_module(directory) {
export const server_only_module_pattern = /[/.]server\.[^/]+$/;
export const server_only_directory_pattern = /\/server\//;

export const strip_virtual_prefix = /** @param {string} id */ (id) => id.replace('\0virtual:', '');

/**
* For `error_for_missing_config('remote functions', 'experimental.remoteFunctions', 'true')`,
* returns:
Expand Down
23 changes: 0 additions & 23 deletions packages/kit/src/utils/path.js

This file was deleted.

32 changes: 0 additions & 32 deletions packages/kit/src/utils/path.spec.js

This file was deleted.

11 changes: 0 additions & 11 deletions packages/kit/src/utils/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,6 @@ export function decode_pathname(pathname) {
return pathname.split('%25').map(decodeURI).join('%25');
}

/** @param {Record<string, string>} params */
export function decode_params(params) {
for (const key in params) {
// input has already been decoded by decodeURI
// now handle the rest
params[key] = decodeURIComponent(params[key]);
}

return params;
}

/**
* The error when a URL is malformed is not very helpful, so we augment it with the URI
* @param {string} uri
Expand Down
Loading