Skip to content

Commit 62cc4a5

Browse files
committed
chore: Remove redundant uploadToPastie
1 parent 2ad7e51 commit 62cc4a5

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/tools.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
import axios from 'axios';
2-
31
import type { TranslationFn } from '@/i18n/types';
42

53
export function toId(str: string): string {
64
return str.toLowerCase().replace(/[^a-z0-9]/g, '');
75
}
86

9-
export async function uploadToPastie(text: string): Promise<string> {
10-
const res = await axios.post(`https://pastie.io/documents`, text);
11-
return `https://pastie.io/raw/${res.data.key as string}`;
12-
}
13-
147
type Entry = {
158
abbr: string;
169
name: string;

0 commit comments

Comments
 (0)