Skip to content

Commit d724f46

Browse files
committed
🚿 Remove deprecated functions
1 parent a0c13e7 commit d724f46

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

buffer/fileformat.ts

-24
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,6 @@ export const isFileFormat: Predicate<FileFormat> = is.LiteralOneOf(
99
["unix", "dos", "mac"] as const,
1010
);
1111

12-
/**
13-
* Assert that the value is FileFormat.
14-
*
15-
* @deprecated Use `assert` function of `unknownutil` instead.
16-
*/
17-
export const assertFileFormat = (v: unknown): asserts v is FileFormat =>
18-
assert(v, isFileFormat);
19-
20-
/**
21-
* Ensure that the value is FileFormat.
22-
*
23-
* @deprecated Use `ensure` function of `unknownutil` instead.
24-
*/
25-
export const ensureFileFormat = (v: unknown): FileFormat =>
26-
ensure(v, isFileFormat);
27-
28-
/**
29-
* Maybe that the value is FileFormat.
30-
*
31-
* @deprecated Use `maybe` function of `unknownutil` instead.
32-
*/
33-
export const maybeFileFormat = (v: unknown): FileFormat | undefined =>
34-
maybe(v, isFileFormat);
35-
3612
const fileFormatDelimiters = {
3713
unix: "\n",
3814
dos: "\r\n",

buffer/mod.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,5 @@
5454
*/
5555
export * from "./buffer.ts";
5656
export * from "./decoration.ts";
57-
export {
58-
assertFileFormat,
59-
ensureFileFormat,
60-
isFileFormat,
61-
maybeFileFormat,
62-
} from "./fileformat.ts";
57+
export { isFileFormat } from "./fileformat.ts";
6358
export type { FileFormat } from "./fileformat.ts";

0 commit comments

Comments
 (0)