Remove UWP / Hololens support

This commit is contained in:
Martin Robinson 2023-07-05 08:46:07 +02:00
parent 041d95e0f4
commit c58d74fe62
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8
97 changed files with 54 additions and 7084 deletions

View file

@ -6,9 +6,6 @@ license = "MPL-2.0"
edition = "2018"
publish = false
[features]
uwp = []
[lib]
name = "servo_config"
path = "lib.rs"

View file

@ -35,14 +35,9 @@ pub fn default_config_dir() -> Option<PathBuf> {
Some(config_dir)
}
#[cfg(all(target_os = "windows", not(feature = "uwp")))]
#[cfg(all(target_os = "windows"))]
pub fn default_config_dir() -> Option<PathBuf> {
let mut config_dir = ::dirs_next::config_dir().unwrap();
config_dir.push("Servo");
Some(config_dir)
}
#[cfg(all(target_os = "windows", feature = "uwp"))]
pub fn default_config_dir() -> Option<PathBuf> {
None
}

View file

@ -244,7 +244,7 @@ fn test_set_all_error_on_unknown_field() -> Result<(), Box<dyn Error>> {
Ok(())
}
#[cfg(not(any(target_os = "android", feature = "uwp")))]
#[cfg(not(target_os = "android"))]
#[test]
fn test_default_config_dir_create_read_write() {
let json_str = "{\