Skip to content

Commit ca37d73

Browse files
committed
Remove dead code for scanning key providers by type
This code has never been used.
1 parent eb8b307 commit ca37d73

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

contrib/pg_tde/src/catalog/tde_keyring.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ typedef enum ProviderScanType
4444
{
4545
PROVIDER_SCAN_BY_NAME,
4646
PROVIDER_SCAN_BY_ID,
47-
PROVIDER_SCAN_BY_TYPE,
4847
PROVIDER_SCAN_ALL
4948
} ProviderScanType;
5049

@@ -671,11 +670,6 @@ scan_key_provider_file(ProviderScanType scanType, void *scanKey, Oid dbOid)
671670
if (provider.provider_id == *(int *) scanKey)
672671
match = true;
673672
}
674-
else if (scanType == PROVIDER_SCAN_BY_TYPE)
675-
{
676-
if (provider.provider_type == *(ProviderType *) scanKey)
677-
match = true;
678-
}
679673
else if (scanType == PROVIDER_SCAN_ALL)
680674
match = true;
681675

0 commit comments

Comments
 (0)