Commit 45e8671
committed
chore(resources): delete the code this branch left with no callers
Three zero-reference exports, found by walking every export in the modules the
merge touched and counting non-test references.
- `resolveMediaMimeType` + `MEDIA_FALLBACK_MIME` (`lib/uploads/utils/file-utils`).
Staging added them in #6341 for `MediaPreview`'s blob path; this branch rewrote
that preview to stream from the serve route, so the merge orphaned them. Their
tests go too, and the `DUAL_CONTAINER_MIME` doc stops pointing at a function
that no longer exists.
Worth recording, since deleting the helper deletes the fix: it retagged a
dual-container `.webm` to the element the viewer had already chosen. The serve
route now declares the type instead, and derives it from the filename, where
`webm` maps to `video/webm` — so an audio-only `.webm` reaches an `<audio>`
element labelled `video/webm`. Browsers sniff `src=` responses rather than
trusting the header, so this is inert in practice, but it is a real narrowing
and the public-share route (which uses the stored `file.contentType`) does not
share it.
- `tableWorkspaceId` (`resources/table-source.ts`, the whole file). Added by this
branch's own first commit and never called — `cell-render` takes the workspace
id as a plain argument. Its TSDoc claimed to be "the value that decides whether
a cell may render a sim-resource chip", which nothing enforced. The table
migration will want this helper; it can arrive with a caller and an accurate
docstring.
- `isMediaFileType` (`lib/uploads/utils/file-utils`). Not ours — dead since #2068,
zero references including tests. Removed while the file was open.1 parent 285e035 commit 45e8671
3 files changed
Lines changed: 1 addition & 84 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
255 | 254 | | |
256 | 255 | | |
257 | 256 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 136 | | |
145 | 137 | | |
146 | 138 | | |
| |||
390 | 382 | | |
391 | 383 | | |
392 | 384 | | |
393 | | - | |
394 | | - | |
| 385 | + | |
395 | 386 | | |
396 | 387 | | |
397 | 388 | | |
| |||
432 | 423 | | |
433 | 424 | | |
434 | 425 | | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | 426 | | |
462 | 427 | | |
463 | 428 | | |
| |||
This file was deleted.
0 commit comments