Skip to content

Commit 4d79dda

Browse files
authored
[PAY-3750] Remove unused exports and dead code - part 3 (#10902)
1 parent 3f3cc26 commit 4d79dda

File tree

50 files changed

+41
-726
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+41
-726
lines changed

packages/web/src/common/store/search-ai-bar/sagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { getSearch } from './selectors'
1414

1515
const getUserId = accountSelectors.getUserId
1616

17-
export function* getSearchResults(searchText: string) {
17+
function* getSearchResults(searchText: string) {
1818
yield* waitForRead()
1919

2020
const sdk = yield* getSDK()
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { AppState } from 'store/types'
22

33
export const getSearch = (state: AppState) => state.searchAiBar
4-
export const getSearchBarText = (state: AppState) => state.searchBar.searchText
5-
export const getSearchBarStatus = (state: AppState) => state.searchBar.status
64
export const getSearchResults = (state: AppState) => state.searchAiBar.users

packages/web/src/common/store/search-ai-bar/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Status, SearchUser } from '@audius/common/models'
22

3-
export type SearchResults = {
3+
type SearchResults = {
44
users: SearchUser[]
55
}
66

packages/web/src/common/store/upload/sagas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ export function* uploadMultipleTracks(
11231123
yield* put(cacheActions.setExpired(Kind.USERS, account!.user_id))
11241124
}
11251125

1126-
export function* uploadTracksAsync(
1126+
function* uploadTracksAsync(
11271127
action: ReturnType<typeof uploadActions.uploadTracks>
11281128
) {
11291129
yield* call(waitForWrite)
@@ -1203,7 +1203,7 @@ export function* uploadTracksAsync(
12031203
}
12041204
}
12051205

1206-
export function* updateTrackAudioAsync(
1206+
function* updateTrackAudioAsync(
12071207
action: ReturnType<typeof uploadActions.updateTrackAudio>
12081208
) {
12091209
yield* call(waitForWrite)

packages/web/src/common/store/user-list/favorites/errorSagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type ErrorActions =
1313
| ReturnType<typeof trackFavoriteError>
1414
| ReturnType<typeof playlistFavoriteError>
1515

16-
export function* handleFavoriteError(action: ErrorActions) {
16+
function* handleFavoriteError(action: ErrorActions) {
1717
yield put(
1818
errorActions.handleError({
1919
message: action.type,

packages/web/src/common/store/user-list/followers/errorSagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { GET_FOLLOWERS_ERROR, getFollowersError } = followersUserListActions
66

77
type ErrorActions = ReturnType<typeof getFollowersError>
88

9-
export function* handleFollowersError(action: ErrorActions) {
9+
function* handleFollowersError(action: ErrorActions) {
1010
yield put(
1111
errorActions.handleError({
1212
message: action.type,

packages/web/src/common/store/user-list/following/errorSagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { GET_FOLLOWING_ERROR, getFollowingError } = followingUserListActions
66

77
type ErrorActions = ReturnType<typeof getFollowingError>
88

9-
export function* handleFollowingError(action: ErrorActions) {
9+
function* handleFollowingError(action: ErrorActions) {
1010
yield put(
1111
errorActions.handleError({
1212
message: action.type,

packages/web/src/common/store/user-list/mutuals/errorSagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { GET_MUTUALS_ERROR, getMutualsError } = mutualsUserListActions
66

77
type ErrorActions = ReturnType<typeof getMutualsError>
88

9-
export function* handleMutualsError(action: ErrorActions) {
9+
function* handleMutualsError(action: ErrorActions) {
1010
yield put(
1111
errorActions.handleError({
1212
message: action.type,

packages/web/src/common/store/user-list/notifications/errorSagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { GET_NOTIFICATION_ERROR, getNotificationError } =
77

88
type ErrorActions = ReturnType<typeof getNotificationError>
99

10-
export function* handleRepostError(action: ErrorActions) {
10+
function* handleRepostError(action: ErrorActions) {
1111
yield put(
1212
errorActions.handleError({
1313
message: action.type,

packages/web/src/common/store/user-list/purchasers/errorSagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { GET_PURCHASERS_ERROR, getPurchasersError } = purchasersUserListActions
66

77
type HandlePurchasersError = ReturnType<typeof getPurchasersError>
88

9-
export function* handlePurchasersError(action: HandlePurchasersError) {
9+
function* handlePurchasersError(action: HandlePurchasersError) {
1010
yield put(
1111
errorActions.handleError({
1212
message: action.type,

0 commit comments

Comments
 (0)