Skip to content

Commit fc3e33b

Browse files
committed
Remove deprecated addAll method
1 parent d0f4621 commit fc3e33b

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

src/entities/models.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ export interface EntityStateAdapter<T> {
4646
addOne<S extends EntityState<T>>(entity: T, state: S): S
4747
addMany<S extends EntityState<T>>(entities: T[], state: S): S
4848

49-
/** @deprecated addAll has been renamed. Use setAll instead. */
50-
addAll<S extends EntityState<T>>(entities: T[], state: S): S
51-
5249
setAll<S extends EntityState<T>>(entities: T[], state: S): S
5350

5451
removeOne<S extends EntityState<T>>(key: string, state: S): S

src/entities/sorted_state_adapter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ export function createSortedStateAdapter<T>(selectId: any, sort: any): any {
199199
addOne: createStateOperator(addOneMutably),
200200
updateOne: createStateOperator(updateOneMutably),
201201
upsertOne: createStateOperator(upsertOneMutably),
202-
addAll: createStateOperator(setAllMutably),
203202
setAll: createStateOperator(setAllMutably),
204203
addMany: createStateOperator(addManyMutably),
205204
updateMany: createStateOperator(updateManyMutably),

src/entities/unsorted_state_adapter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ export function createUnsortedStateAdapter<T>(selectId: IdSelector<T>): any {
194194
removeAll,
195195
addOne: createStateOperator(addOneMutably),
196196
addMany: createStateOperator(addManyMutably),
197-
addAll: createStateOperator(setAllMutably),
198197
setAll: createStateOperator(setAllMutably),
199198
updateOne: createStateOperator(updateOneMutably),
200199
updateMany: createStateOperator(updateManyMutably),

0 commit comments

Comments
 (0)