gardesk/gardisplay / 59c4cd1

Browse files

suppress warnings for scaffolded code pending sprint 3

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
59c4cd19d265c9199b0dad4a58c0cd1788c85405
Parents
eb8314e
Tree
e5ad354

3 changed files

StatusFile+-
M gardisplay/src/app.rs 2 0
M gardisplay/src/config/mod.rs 1 0
M gardisplay/src/ui/monitor_view.rs 4 0
gardisplay/src/app.rsmodified
@@ -17,11 +17,13 @@ const WINDOW_HEIGHT: u32 = 600;
1717
 
1818
 /// Main application.
1919
 pub struct App {
20
+    #[allow(dead_code)] // Used in Sprint 3 for RandR operations
2021
     conn: Connection,
2122
     window: Window,
2223
     renderer: Renderer,
2324
     theme: Theme,
2425
     gc: u32,
26
+    #[allow(dead_code)] // Used in Sprint 3 for profile management
2527
     config: Config,
2628
     monitor_view: MonitorView,
2729
 }
gardisplay/src/config/mod.rsmodified
@@ -33,6 +33,7 @@ pub fn config_path() -> anyhow::Result<PathBuf> {
3333
 
3434
 impl Config {
3535
     /// Save configuration to file.
36
+    #[allow(dead_code)] // Used in Sprint 3 for profile management
3637
     pub fn save(&self) -> anyhow::Result<()> {
3738
         let path = config_path()?;
3839
 
gardisplay/src/ui/monitor_view.rsmodified
@@ -618,21 +618,25 @@ impl MonitorView {
618618
     }
619619
 
620620
     /// Get the selected monitor index.
621
+    #[allow(dead_code)] // Used in Sprint 3 for RandR application
621622
     pub fn selected(&self) -> Option<usize> {
622623
         self.selected
623624
     }
624625
 
625626
     /// Get monitors.
627
+    #[allow(dead_code)] // Used in Sprint 3 for RandR application
626628
     pub fn monitors(&self) -> &[MonitorState] {
627629
         &self.monitors
628630
     }
629631
 
630632
     /// Check if layout has been modified.
633
+    #[allow(dead_code)] // Used in Sprint 3 for RandR application
631634
     pub fn is_dirty(&self) -> bool {
632635
         self.dirty
633636
     }
634637
 
635638
     /// Get primary monitor name.
639
+    #[allow(dead_code)] // Used in Sprint 3 for RandR application
636640
     pub fn primary_name(&self) -> Option<&str> {
637641
         self.primary_name.as_deref()
638642
     }