Remove unused CDSH code

This commit is contained in:
Fedor Indutny 2022-08-23 09:38:46 -07:00 committed by GitHub
parent 413b6dbd5c
commit c18fa35354
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 0 additions and 147 deletions

View file

@ -48,7 +48,6 @@ import type {
import type { CDSBase } from './cds/CDSBase';
import { LegacyCDS } from './cds/LegacyCDS';
import type { LegacyCDSPutAttestationResponseType } from './cds/LegacyCDS';
import { CDSH } from './cds/CDSH';
import { CDSI } from './cds/CDSI';
import type WebSocketResource from './WebsocketResources';
import { SignalService as Proto } from '../protobuf';
@ -1206,32 +1205,6 @@ export function initialize({
},
});
}
if (directoryType === 'cdsh') {
const {
directoryCDSHUrl,
directoryCDSHPublicKey,
directoryCDSHCodeHashes,
} = directoryConfig;
cds = new CDSH({
logger: log,
proxyUrl,
url: directoryCDSHUrl,
publicKey: directoryCDSHPublicKey,
codeHashes: directoryCDSHCodeHashes,
certificateAuthority,
version,
async getAuth() {
return (await _ajax({
call: 'directoryAuthV2',
httpType: 'GET',
responseType: 'json',
})) as CDSAuthType;
},
});
}
let fetchForLinkPreviews: linkPreviewFetch.FetchFn;
if (proxyUrl) {