Skip to content

Commit 5fdc6ec

Browse files
committed
refactor(content_management): remove unused country search term from edit headline state
- Remove countrySearchTerm field from EditHeadlineState - Remove countrySearchTerm parameter from EditHeadlineState constructor - Remove countrySearchTerm from copyWith method - Remove countrySearchTerm from props list in EditHeadlineState
1 parent 9474d04 commit 5fdc6ec

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/content_management/bloc/edit_headline/edit_headline_state.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ final class EditHeadlineState extends Equatable {
3636
this.countriesHasMore = true,
3737
this.countriesIsLoadingMore = false,
3838
this.countriesCursor,
39-
this.countrySearchTerm = '',
4039
this.contentStatus = ContentStatus.active,
4140
this.exception,
4241
this.updatedHeadline,
@@ -57,7 +56,6 @@ final class EditHeadlineState extends Equatable {
5756
final bool countriesHasMore;
5857
final bool countriesIsLoadingMore;
5958
final String? countriesCursor;
60-
final String countrySearchTerm;
6159
final ContentStatus contentStatus;
6260
final HttpException? exception;
6361
final Headline? updatedHeadline;
@@ -88,7 +86,6 @@ final class EditHeadlineState extends Equatable {
8886
bool? countriesHasMore,
8987
bool? countriesIsLoadingMore,
9088
String? countriesCursor,
91-
String? countrySearchTerm,
9289
ContentStatus? contentStatus,
9390
HttpException? exception,
9491
Headline? updatedHeadline,
@@ -110,7 +107,6 @@ final class EditHeadlineState extends Equatable {
110107
countriesIsLoadingMore:
111108
countriesIsLoadingMore ?? this.countriesIsLoadingMore,
112109
countriesCursor: countriesCursor ?? this.countriesCursor,
113-
countrySearchTerm: countrySearchTerm ?? this.countrySearchTerm,
114110
contentStatus: contentStatus ?? this.contentStatus,
115111
exception: exception,
116112
updatedHeadline: updatedHeadline ?? this.updatedHeadline,
@@ -134,7 +130,6 @@ final class EditHeadlineState extends Equatable {
134130
countriesHasMore,
135131
countriesIsLoadingMore,
136132
countriesCursor,
137-
countrySearchTerm,
138133
contentStatus,
139134
exception,
140135
updatedHeadline,

0 commit comments

Comments
 (0)