Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 5a95053

Browse files
authored
rm unused parts of smuggler-api (#389)
1 parent 5c6d6d5 commit 5a95053

File tree

2 files changed

+0
-130
lines changed

2 files changed

+0
-130
lines changed

smuggler-api/src/api.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -526,10 +526,6 @@ async function getAuth({
526526
return await resp.json()
527527
}
528528

529-
export async function ping(): Promise<void> {
530-
await fetch(makeUrl(), { method: 'GET' })
531-
}
532-
533529
export const getNodesSlice: GetNodesSliceFn = async ({
534530
end_time,
535531
start_time,
@@ -871,25 +867,6 @@ async function getExternalAssociation(
871867
)
872868
}
873869

874-
async function getUserBadge({
875-
uid,
876-
signal,
877-
}: {
878-
uid: string
879-
signal: AbortSignal
880-
}): Promise<UserBadge> {
881-
verifyIsNotNull(uid)
882-
verifyIsNotNull(signal)
883-
const resp = await fetch(makeUrl(`/user/${uid}/badge`), {
884-
method: 'GET',
885-
signal,
886-
})
887-
if (resp.ok) {
888-
return await resp.json()
889-
}
890-
throw _makeResponseError(resp)
891-
}
892-
893870
async function registerAccount({
894871
name,
895872
email,
@@ -1103,11 +1080,6 @@ export const smuggler = {
11031080
sticky: switchEdgeStickiness,
11041081
delete: deleteEdge,
11051082
},
1106-
snitch: {
1107-
// Todo(akindyakov): monitoring counters and logs
1108-
report: null,
1109-
record: null,
1110-
},
11111083
session: {
11121084
create: createSession,
11131085
delete: deleteSession,
@@ -1130,15 +1102,11 @@ export const smuggler = {
11301102
},
11311103
},
11321104
user: {
1133-
badge: {
1134-
get: getUserBadge,
1135-
},
11361105
password: {
11371106
recover: passwordRecoverRequest,
11381107
reset: passwordReset,
11391108
change: passwordChange,
11401109
},
11411110
register: registerAccount,
11421111
},
1143-
ping,
11441112
}

truthsayer/src/card/AuthorBadge.js

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)