[INJIMOB-1078] remove unused function and comment

Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
This commit is contained in:
KiruthikaJeyashankar
2024-09-16 17:15:15 +05:30
parent d74b2f90e9
commit 04c50b8efb
3 changed files with 1 additions and 25 deletions

View File

@@ -298,11 +298,6 @@ dependencies {
}
compileOnly project(':react-native-android-location-services-dialog-box')
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
// {
// exclude group: "androidx.annotation", module: "annotation"
// }
// exclude group:'androidx.annotation',module: 'annotation', version: '1.6.0'
// TODO: Is it really needed to add this dependency here?
implementation('androidx.annotation:annotation-jvm:1.6.0')
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {

View File

@@ -55,7 +55,7 @@ export class VCMetadata {
static fromVC(vc: Partial<VC> | VCMetadata | any) {
return new VCMetadata({
idType: vc.idType,
format: vc.format || VCFormat.ldp_vc
format: vc.format || VCFormat.ldp_vc,
requestId: vc.requestId,
isPinned: vc.isPinned || false,
id: vc.id,

View File

@@ -44,7 +44,6 @@ export function getVcVerificationDetails(
verifiableCredential,
wellknown: Object,
): vcVerificationBannerDetails {
//TODO: get id type from configId rather than credential types
const idType = getIdType(
wellknown,
getVerifiableCredential(verifiableCredential).credentialConfigurationId,
@@ -88,24 +87,6 @@ export const getIdentifier = (context, credential: VerifiableCredential) => {
}
};
//TODO: Remove unused function - getCredentialRequestBody
export const getCredentialRequestBody = async (
proofJWT: string,
credentialType: Array<string>,
) => {
return {
format: 'ldp_vc',
credential_definition: {
'@context': ['https://www.w3.org/2018/credentials/v1'],
type: credentialType,
},
proof: {
proof_type: 'jwt',
jwt: proofJWT,
},
};
};
export const updateCredentialInformation = (
context,
credential: VerifiableCredential,