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;
17
 
17
 
18
 /// Main application.
18
 /// Main application.
19
 pub struct App {
19
 pub struct App {
20
+    #[allow(dead_code)] // Used in Sprint 3 for RandR operations
20
     conn: Connection,
21
     conn: Connection,
21
     window: Window,
22
     window: Window,
22
     renderer: Renderer,
23
     renderer: Renderer,
23
     theme: Theme,
24
     theme: Theme,
24
     gc: u32,
25
     gc: u32,
26
+    #[allow(dead_code)] // Used in Sprint 3 for profile management
25
     config: Config,
27
     config: Config,
26
     monitor_view: MonitorView,
28
     monitor_view: MonitorView,
27
 }
29
 }
gardisplay/src/config/mod.rsmodified
@@ -33,6 +33,7 @@ pub fn config_path() -> anyhow::Result<PathBuf> {
33
 
33
 
34
 impl Config {
34
 impl Config {
35
     /// Save configuration to file.
35
     /// Save configuration to file.
36
+    #[allow(dead_code)] // Used in Sprint 3 for profile management
36
     pub fn save(&self) -> anyhow::Result<()> {
37
     pub fn save(&self) -> anyhow::Result<()> {
37
         let path = config_path()?;
38
         let path = config_path()?;
38
 
39
 
gardisplay/src/ui/monitor_view.rsmodified
@@ -618,21 +618,25 @@ impl MonitorView {
618
     }
618
     }
619
 
619
 
620
     /// Get the selected monitor index.
620
     /// Get the selected monitor index.
621
+    #[allow(dead_code)] // Used in Sprint 3 for RandR application
621
     pub fn selected(&self) -> Option<usize> {
622
     pub fn selected(&self) -> Option<usize> {
622
         self.selected
623
         self.selected
623
     }
624
     }
624
 
625
 
625
     /// Get monitors.
626
     /// Get monitors.
627
+    #[allow(dead_code)] // Used in Sprint 3 for RandR application
626
     pub fn monitors(&self) -> &[MonitorState] {
628
     pub fn monitors(&self) -> &[MonitorState] {
627
         &self.monitors
629
         &self.monitors
628
     }
630
     }
629
 
631
 
630
     /// Check if layout has been modified.
632
     /// Check if layout has been modified.
633
+    #[allow(dead_code)] // Used in Sprint 3 for RandR application
631
     pub fn is_dirty(&self) -> bool {
634
     pub fn is_dirty(&self) -> bool {
632
         self.dirty
635
         self.dirty
633
     }
636
     }
634
 
637
 
635
     /// Get primary monitor name.
638
     /// Get primary monitor name.
639
+    #[allow(dead_code)] // Used in Sprint 3 for RandR application
636
     pub fn primary_name(&self) -> Option<&str> {
640
     pub fn primary_name(&self) -> Option<&str> {
637
         self.primary_name.as_deref()
641
         self.primary_name.as_deref()
638
     }
642
     }