Skip to content

Commit 7d90d1a

Browse files
committed
remove unused function
Signed-off-by: Adam Setch <[email protected]>
1 parent c539b0b commit 7d90d1a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/renderer/utils/auth/utils.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import type {
99
AuthCode,
1010
AuthState,
1111
ClientID,
12-
GitifyUser,
1312
Hostname,
1413
Link,
1514
Token,
@@ -72,21 +71,6 @@ export function authGitHub(
7271
});
7372
}
7473

75-
export async function getUserData(
76-
token: Token,
77-
hostname: Hostname,
78-
): Promise<GitifyUser> {
79-
const response = await fetchAuthenticatedUserDetails(hostname, token);
80-
const user = response.data.viewer;
81-
82-
return {
83-
id: user.id,
84-
login: user.login,
85-
name: user.name,
86-
avatar: user.avatarUrl,
87-
};
88-
}
89-
9074
export async function getToken(
9175
authCode: AuthCode,
9276
authOptions = Constants.DEFAULT_AUTH_OPTIONS,

0 commit comments

Comments
 (0)