mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove fn start_sending_sniffed
This function was not used, but more importantly encodes the bad practice of a raw `.unwrap()` and therefore should not be used.
This commit is contained in:
parent
0e5893dc0d
commit
cc2b2a85bd
1 changed files with 0 additions and 8 deletions
|
@ -94,14 +94,6 @@ pub fn send_error(url: Url, err: NetworkError, start_chan: LoadConsumer) {
|
|||
}
|
||||
}
|
||||
|
||||
/// For use by loaders in responding to a Load message that allows content sniffing.
|
||||
pub fn start_sending_sniffed(start_chan: LoadConsumer, metadata: Metadata,
|
||||
classifier: Arc<MimeClassifier>, partial_body: &[u8],
|
||||
context: LoadContext)
|
||||
-> ProgressSender {
|
||||
start_sending_sniffed_opt(start_chan, metadata, classifier, partial_body, context).ok().unwrap()
|
||||
}
|
||||
|
||||
/// For use by loaders in responding to a Load message that allows content sniffing.
|
||||
pub fn start_sending_sniffed_opt(start_chan: LoadConsumer, mut metadata: Metadata,
|
||||
classifier: Arc<MimeClassifier>, partial_body: &[u8],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue