diff options
Diffstat (limited to 'src/editor.rs')
| -rw-r--r-- | src/editor.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/editor.rs b/src/editor.rs index d541fb6..e652ddc 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -121,20 +121,6 @@ impl Editor { } } - /* - TODO: reintroduce saving and loading - // Handle saving and loading the editor contents to the swap file - if rl.is_key_pressed(KeyboardKey::KEY_S) { - self.map_data - .write_file("swap.ron") - .expect("Unable to write buffer file"); - } else if rl.is_key_pressed(KeyboardKey::KEY_L) { - self.map_data - .load_file("swap.ron") - .expect("Unable to read buffer file"); - } - */ - let mouse_pos_m = transform.point_px_to_m(&rl.get_mouse_position().into()); let snapped_mouse_pos = snap_to_grid(mouse_pos_m, SNAP_SIZE); |
