Skip to content

Commit 4105729

Browse files
committed
delete hash messages
1 parent 360d4a5 commit 4105729

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/features/decoder/services/decoder.store.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ import { AsymmetricKeyFormatValues } from "@/features/common/values/asymmetric-k
1010
import { JwtSignatureStatusValues } from "@/features/common/values/jwt-signature-status.values";
1111
import { DecoderInputsModel } from "@/features/debugger/models/decoder-inputs.model";
1212

13-
export enum HashWarningVisibilityValues {
14-
VISIBLE = "VISIBLE",
15-
HIDDEN = "HIDDEN",
16-
}
17-
1813
export const DEFAULT_ALG_TYPE = "HS";
1914
export const DEFAULT_ALG_SIZE = 256;
2015
export const DEFAULT_ALG = `${DEFAULT_ALG_TYPE}${DEFAULT_ALG_SIZE}`;
@@ -63,7 +58,6 @@ export type DecoderStoreState = {
6358
decodingErrors: string[] | null;
6459
signatureWarnings: string[] | null;
6560
verificationInputErrors: string[] | null;
66-
useHashWarningVisibility: HashWarningVisibilityValues;
6761
};
6862

6963
type DecoderStoreActions = {
@@ -79,8 +73,6 @@ type DecoderStoreActions = {
7973
) => void;
8074
resetControlledSymmetricSecretKey: () => void;
8175
resetControlledAsymmetricPublicKey: () => void;
82-
showUseHashWarning: () => void;
83-
hideUseHashWarning: () => void;
8476
loadDecoderInputs: (params: DecoderInputsModel) => void;
8577
};
8678

@@ -100,7 +92,6 @@ export const initialState: DecoderStoreState = {
10092
controlledSymmetricSecretKey: null,
10193
controlledAsymmetricPublicKey: null,
10294
verificationInputErrors: null,
103-
useHashWarningVisibility: HashWarningVisibilityValues.HIDDEN,
10495
};
10596

10697
export type DecoderStore = DecoderStoreState & DecoderStoreActions;
@@ -204,16 +195,6 @@ export const useDecoderStore = create<DecoderStore>()(
204195
format: state.asymmetricPublicKeyFormat,
205196
},
206197
})),
207-
showUseHashWarning: () => {
208-
set({
209-
useHashWarningVisibility: HashWarningVisibilityValues.VISIBLE,
210-
});
211-
},
212-
hideUseHashWarning: () => {
213-
set({
214-
useHashWarningVisibility: HashWarningVisibilityValues.HIDDEN,
215-
});
216-
},
217198
loadDecoderInputs: async (params) => {
218199
const update = await TokenDecoderService.loadDecoderInputs(params);
219200

0 commit comments

Comments
 (0)