Clean up some unused code after switching to rustls (#30081)

The SSL certificate resource is no longer used as these certificates are
loaded via the webpki-roots crate.
This commit is contained in:
Martin Robinson 2023-08-09 03:02:02 +02:00 committed by GitHub
parent c28404e9fa
commit 170cd44fa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 5 deletions

View file

@ -52,7 +52,6 @@ pub enum Resource {
BluetoothBlocklist,
DomainList,
HstsPreloadList,
SSLCertificates,
BadCertHTML,
NetErrorHTML,
UserAgentCSS,
@ -88,7 +87,6 @@ fn resources_for_tests() -> Box<dyn ResourceReaderMethods + Sync + Send> {
Resource::BluetoothBlocklist => "gatt_blocklist.txt",
Resource::DomainList => "public_domains.txt",
Resource::HstsPreloadList => "hsts_preload.json",
Resource::SSLCertificates => "certs",
Resource::BadCertHTML => "badcert.html",
Resource::NetErrorHTML => "neterror.html",
Resource::UserAgentCSS => "user-agent.css",

View file

@ -26,7 +26,6 @@ fn filename(file: Resource) -> &'static str {
Resource::BluetoothBlocklist => "gatt_blocklist.txt",
Resource::DomainList => "public_domains.txt",
Resource::HstsPreloadList => "hsts_preload.json",
Resource::SSLCertificates => "certs",
Resource::BadCertHTML => "badcert.html",
Resource::NetErrorHTML => "neterror.html",
Resource::UserAgentCSS => "user-agent.css",

View file

@ -900,7 +900,6 @@ impl ResourceReaderMethods for ResourceReaderInstance {
Resource::HstsPreloadList => {
&include_bytes!("../../../../resources/hsts_preload.json")[..]
},
Resource::SSLCertificates => &include_bytes!("../../../../resources/certs")[..],
Resource::BadCertHTML => &include_bytes!("../../../../resources/badcert.html")[..],
Resource::NetErrorHTML => &include_bytes!("../../../../resources/neterror.html")[..],
Resource::UserAgentCSS => &include_bytes!("../../../../resources/user-agent.css")[..],

View file

@ -21,7 +21,6 @@ fn filename(file: Resource) -> &'static str {
Resource::BluetoothBlocklist => "gatt_blocklist.txt",
Resource::DomainList => "public_domains.txt",
Resource::HstsPreloadList => "hsts_preload.json",
Resource::SSLCertificates => "certs",
Resource::BadCertHTML => "badcert.html",
Resource::NetErrorHTML => "neterror.html",
Resource::UserAgentCSS => "user-agent.css",