From 782d80a007a09ceb6615275579b646f1065a6765 Mon Sep 17 00:00:00 2001
From: Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm>
Date: Sun, 2 Feb 2020 17:11:25 +0000
Subject: [PATCH] row: Eliminate angle

---
 src/data.rs   | 3 +--
 src/layout.rs | 6 ------
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/data.rs b/src/data.rs
index 5b2c4c9d..777aebc5 100644
--- a/src/data.rs
+++ b/src/data.rs
@@ -432,8 +432,7 @@ impl Layout {
                                 &mut warning_handler,
                             ))
                         });
-                    ::layout::Row {
-                        angle: 0,
+                    layout::Row {
                         buttons: add_offsets(
                             buttons,
                             |button| button.size.width,
diff --git a/src/layout.rs b/src/layout.rs
index 671e774a..763da87a 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -486,8 +486,6 @@ pub struct Button {
 pub struct Row {
     /// Buttons together with their offset from the left
     pub buttons: Vec<(f64, Box<Button>)>,
-    /// Angle is not really used anywhere...
-    pub angle: i32,
 }
 
 impl Row {    
@@ -765,7 +763,6 @@ mod procedures {
 
             let row = Row {
                 buttons: vec!((0.1, button)),
-                angle: 0,
             };
 
             let view = View {
@@ -1012,7 +1009,6 @@ mod test {
             (
                 0.0,
                 Row {
-                    angle: 0,
                     buttons: vec![(
                         0.0,
                         Box::new(Button {
@@ -1025,7 +1021,6 @@ mod test {
             (
                 10.0,
                 Row {
-                    angle: 0,
                     buttons: vec![(
                         0.0,
                         Box::new(Button {
@@ -1049,7 +1044,6 @@ mod test {
             (
                 0.0,
                 Row {
-                    angle: 0,
                     buttons: vec![(
                         0.0,
                         Box::new(Button {
-- 
GitLab