mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-18 18:38:05 +08:00
Remove dead code for Imaginate
This commit is contained in:
@@ -55,53 +55,3 @@ pub fn commit_info_localized(localized_commit_date: &str) -> String {
|
||||
localized_commit_date
|
||||
)
|
||||
}
|
||||
|
||||
// #[cfg(test)]
|
||||
// mod test {
|
||||
// use crate::messages::input_mapper::utility_types::input_mouse::ViewportBounds;
|
||||
// use crate::messages::prelude::*;
|
||||
|
||||
// // TODO: Fix and reenable
|
||||
// #[ignore]
|
||||
// #[test]
|
||||
// fn debug_ub() {
|
||||
// use super::Message;
|
||||
|
||||
// let mut editor = super::Editor::new();
|
||||
// let mut responses = Vec::new();
|
||||
|
||||
// let messages: Vec<Message> = vec![
|
||||
// Message::Init,
|
||||
// Message::Preferences(PreferencesMessage::Load {
|
||||
// preferences: r#"{ "imaginate_server_hostname": "http://localhost:7860/", "imaginate_refresh_frequency": 1, "zoom_with_scroll": false }"#.to_string(),
|
||||
// }),
|
||||
// PortfolioMessage::OpenDocumentFileWithId {
|
||||
// document_id: DocumentId(0),
|
||||
// document_name: "".into(),
|
||||
// document_is_auto_saved: true,
|
||||
// document_is_saved: true,
|
||||
// document_serialized_content: r#" [removed until test is reenabled] "#.into(),
|
||||
// to_front: false,
|
||||
// }
|
||||
// .into(),
|
||||
// InputPreprocessorMessage::BoundsOfViewports {
|
||||
// bounds_of_viewports: vec![ViewportBounds::from_slice(&[0., 0., 1920., 1080.])],
|
||||
// }
|
||||
// .into(),
|
||||
// ];
|
||||
|
||||
// use futures::executor::block_on;
|
||||
// for message in messages {
|
||||
// block_on(crate::node_graph_executor::run_node_graph());
|
||||
// let mut res = VecDeque::new();
|
||||
// editor.poll_node_graph_evaluation(&mut res).expect("poll_node_graph_evaluation failed");
|
||||
|
||||
// let res = editor.handle_message(message);
|
||||
// responses.push(res);
|
||||
// }
|
||||
// let responses = responses.pop().unwrap();
|
||||
// // let trigger_message = responses[responses.len() - 2].clone();
|
||||
|
||||
// println!("responses: {responses:#?}");
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user