Skip to content

Commit

Permalink
Removed useless Ui struct field
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-oliviero committed Feb 7, 2022
1 parent d57db77 commit dafd641
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use std::io::Read;

#[derive(Clone, Debug)]
pub struct Ui {
pub nan_err: [String; 2],
pub insert_num: String,
pub convert_btn: String,
pub clear_btn: String,
Expand All @@ -20,10 +19,6 @@ pub struct Digits {
impl Ui {
pub fn new(src: &str) -> Self {
let lines = src.split("\n");
let mut ne = [
String::from("nan_err 0 not set!"),
String::from("nan_err 1 not set!"),
];
let mut cvtb = String::from("convert_btn not set!");
let mut cltb = String::from("clear_btn not set!");
let mut ins = String::from("insert_num not set!");
Expand All @@ -47,7 +42,6 @@ impl Ui {
}
// generate the new ui struct
Ui {
nan_err: ne,
insert_num: ins,
convert_btn: cvtb,
clear_btn: cltb,
Expand Down

0 comments on commit dafd641

Please sign in to comment.