Remove unused code

This commit is contained in:
Neeraj Gupta 2024-01-29 11:45:15 +05:30
parent 6e4d17cdb9
commit 57e415f5c9
2 changed files with 0 additions and 34 deletions

View file

@ -7,8 +7,5 @@
"build": "next build",
"lint": "next lint",
"export": "next export"
},
"dependencies": {
"@next/font": "13.1.3"
}
}

View file

@ -1,31 +0,0 @@
import { logError } from '../sentry';
import HTTPService from './HTTPService';
import { getEndpoint } from './api';
const ENDPOINT = getEndpoint();
export const getKexValue = async (key: string) => {
let resp;
try {
resp = await HTTPService.get(`${ENDPOINT}/kex/get`, {
identifier: key,
});
} catch (e) {
logError(e, 'failed to get kex value');
throw e;
}
return resp.data.wrappedKey;
};
export const setKexValue = async (key: string, value: string) => {
try {
await HTTPService.put(ENDPOINT + '/kex/add', {
customIdentifier: key,
wrappedKey: value,
});
} catch (e) {
logError(e, 'failed to set kex value');
throw e;
}
};