From faf86d006ad95273c3bf2c72148a7ca942bd6455 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 14 Dec 2020 13:16:34 -0800 Subject: [PATCH] Remove outdated warning from Rojo 0.5.0 alpha 14 --- src/snapshot_middleware/json_model.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/snapshot_middleware/json_model.rs b/src/snapshot_middleware/json_model.rs index 74ed97fd..c978f57a 100644 --- a/src/snapshot_middleware/json_model.rs +++ b/src/snapshot_middleware/json_model.rs @@ -19,24 +19,6 @@ pub fn snapshot_json_model( let instance: JsonModel = serde_json::from_slice(&contents) .map_err(|source| SnapshotError::malformed_model_json(source, path))?; - if let Some(json_name) = &instance.name { - if json_name != instance_name { - log::warn!( - "Name from JSON model did not match its file name: {}", - path.display() - ); - log::warn!( - "In Rojo < alpha 14, this model is named \"{}\" (from its 'Name' property)", - json_name - ); - log::warn!( - "In Rojo >= alpha 14, this model is named \"{}\" (from its file name)", - instance_name - ); - log::warn!("'Name' for the top-level instance in a JSON model is now optional and will be ignored."); - } - } - let mut snapshot = instance.core.into_snapshot(instance_name.to_owned()); snapshot.metadata = snapshot