@@ -24,8 +24,6 @@ pub mod display;
24
24
use display:: ProjectViewType ;
25
25
26
26
pub mod egui_helpers;
27
- pub mod node_graph;
28
- use node_graph:: SystemEditorState ;
29
27
30
28
mod system;
31
29
use system:: System ;
@@ -58,7 +56,6 @@ pub struct Project {
58
56
pub code_editor : CodeEditor ,
59
57
#[ serde( skip) ]
60
58
terminal_buffer : String ,
61
- graph_editor : SystemEditorState ,
62
59
#[ serde( skip) ]
63
60
receiver : Option < std:: sync:: mpsc:: Receiver < String > > ,
64
61
current_view : ProjectViewType ,
@@ -118,19 +115,6 @@ impl Project {
118
115
}
119
116
}
120
117
}
121
- // If we haven't returned, then display the board in the node graph
122
- let node_kind = board. clone ( ) ;
123
- let user_state = & mut self . system ;
124
- let new_node = self . graph_editor . graph . add_node (
125
- node_kind. node_graph_label ( user_state) ,
126
- node_kind. user_data ( user_state) ,
127
- |graph, node_id| node_kind. build_node ( graph, user_state, node_id) ,
128
- ) ;
129
- self . graph_editor . node_positions . insert (
130
- new_node,
131
- egui:: Pos2 :: ZERO ,
132
- ) ;
133
- self . graph_editor . node_order . push ( new_node) ;
134
118
}
135
119
136
120
/// Populate the project board list via the app-wide 'known boards' list
@@ -181,12 +165,9 @@ impl Project {
181
165
self . name = p. name ;
182
166
self . location = Some ( project_directory. to_path_buf ( ) ) ;
183
167
self . system = p. system ;
184
- self . graph_editor = p. graph_editor ;
185
168
self . current_view = p. current_view ;
186
169
// sync the assets with the global ones
187
170
self . load_board_resources ( ) ;
188
- self . sync_node_graph_with_project ( ) ;
189
- self . sync_connections ( ) ;
190
171
Ok ( ( ) )
191
172
}
192
173
0 commit comments