Skip to content

Commit

Permalink
Remove some useless boilerplate now that #102 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Jul 17, 2019
1 parent 6c76f2e commit c0cc6e5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2321,15 +2321,6 @@ fn path_to_file_url_segments(
fn path_to_file_url_segments(
path: &Path,
serialization: &mut String,
) -> Result<(u32, HostInternal), ()> {
path_to_file_url_segments_windows(path, serialization)
}

// Build this unconditionally to alleviate https://github.com/servo/rust-url/issues/102
#[cfg_attr(not(windows), allow(dead_code))]
fn path_to_file_url_segments_windows(
path: &Path,
serialization: &mut String,
) -> Result<(u32, HostInternal), ()> {
use std::path::{Component, Prefix};
if !path.is_absolute() {
Expand Down

0 comments on commit c0cc6e5

Please sign in to comment.