Skip to content

Commit

Permalink
fix: remove useless function from codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
d0kur0 committed Oct 1, 2023
1 parent fe4ab6c commit 8da2718
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/vendors/fourChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,6 @@ type ThreadResponse = {
export const fourChannelFactory: VendorImplementation = props => {
const urlOverrider = props?.urlOverrider || defaultUrlOverrider;

const fetchSubject = async (thread: Thread) => {
const requestUrl = urlOverrider(
`https://a.4cdn.org/${thread.board}/res/${thread.id}.json`
);

const response = await fetch(requestUrl);
if (!response.ok) return undefined;

const postsResponse: ThreadResponse = await response.json();
const firstPost = postsResponse?.posts?.[0];
return firstPost?.sub || firstPost?.com || undefined;
};

return {
async fetchThreads(boardName: string) {
try {
Expand Down

0 comments on commit 8da2718

Please sign in to comment.