Skip to content

Commit 233bfdd

Browse files
committed
remove unsed code
1 parent ff13650 commit 233bfdd

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

src/social/socialPane.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,6 @@ export const socialPane = {
347347
: undefined
348348
}, function () {
349349
return selectProfileData(context, s)
350-
}, {
351-
onAddFriendSuccess: function () {
352-
refreshRelationshipUi()
353-
}
354350
})
355351
header.classList.add('social-pane__header-section', 'flex-column')
356352
socialPane.prepend(header)

src/social/socialSections.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ export type HeaderProfileData = {
3333
location?: string | null
3434
} | null
3535

36-
type HeaderCallbacks = {
37-
onAddFriendSuccess?: () => void
38-
}
39-
4036
export type FriendRowRenderers = {
4137
renderSupportingInfo: (target: NamedNode, renderDom: HTMLDocument) => HTMLElement | null,
4238
renderNameSuffix: (target: NamedNode, renderDom: HTMLDocument) => HTMLElement | null
@@ -47,8 +43,7 @@ export function createHeaderSection (
4743
subject: NamedNode,
4844
controls: HeaderControls,
4945
stats: HeaderStats,
50-
getProfileData: () => HeaderProfileData,
51-
callbacks: HeaderCallbacks = {}
46+
getProfileData: () => HeaderProfileData
5247
): SocialHeaderElement {
5348
const dom = context.dom
5449
const kb = context.session.store

0 commit comments

Comments
 (0)