mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
c28404e9fa
commit
170cd44fa4
4 changed files with 0 additions and 5 deletions
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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")[..],
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue