Remove unused CDSH code
This commit is contained in:
parent
413b6dbd5c
commit
c18fa35354
6 changed files with 0 additions and 147 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue