Skip to content

Commit

Permalink
refactor: delete unnecessary logic
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopf committed Mar 11, 2024
1 parent 6f0e850 commit 3b261c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
3 changes: 0 additions & 3 deletions packages/x-components/src/x-modules/tagging/store/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ export const taggingXStoreModule: TaggingXStoreModule = {
setQueryTaggingInfo(state, queryTaggingInfo: TaggingRequest) {
state.queryTaggingInfo = queryTaggingInfo;
},
updateTotalHits(state, totalHits: string) {
state.queryTaggingInfo!.params.totalHits = totalHits;
},
setHasSemantics(state, module) {
if (module === 'semanticQueries') {
state.hasSemantics = true;
Expand Down
22 changes: 0 additions & 22 deletions packages/x-components/src/x-modules/tagging/store/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ export interface TaggingMutations extends ConfigMutations<TaggingState> {
* @param queryTaggingInfo - The new {@link TaggingState.queryTaggingInfo}.
*/
setQueryTaggingInfo(queryTaggingInfo: TaggingRequest): void;
/**
* Sets the totalHits property.
*
* @param totalHits - The new value of totalHits in {@link TaggingState.queryTaggingInfo}.
*/
updateTotalHits(totalHits: string): void;
/**
* Sets the hasSemantics property.
*
Expand Down Expand Up @@ -91,19 +85,3 @@ export type TaggingXStoreModule = XStoreModule<
TaggingMutations,
TaggingActions
>;

/**
* Payload to use in the `updateQueryTaggingInfo` action.
*
* @public
*/
export interface SemanticsQueryTaggingPayload {
/**
* The query tagging info.
*/
queryTagging: TaggingRequest;
/**
* The param to modify.
*/
totalHits: string;
}

0 comments on commit 3b261c6

Please sign in to comment.