From bc7acf9ff8350426aa90991d5dc71429c5a4ad9d Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Fri, 12 May 2017 18:05:36 +0200
Subject: [PATCH] Remove superfluous braces

---
 dune/matrix-vector/axpy.hh | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/dune/matrix-vector/axpy.hh b/dune/matrix-vector/axpy.hh
index 12b54d3..5bcdd02 100644
--- a/dune/matrix-vector/axpy.hh
+++ b/dune/matrix-vector/axpy.hh
@@ -158,12 +158,10 @@ namespace MatrixVector {
     typedef Dune::FieldMatrix<T, n, m> B;
     typedef Dune::FieldMatrix<T, m, k> C;
     static void addProduct(A& a, const B& b, const C& c) {
-      for (size_t row = 0; row < n; ++row) {
-        for (size_t col = 0; col < k; ++col) {
+      for (size_t row = 0; row < n; ++row)
+        for (size_t col = 0; col < k; ++col)
           for (size_t i = 0; i < m; ++i)
             a[row][col] += b[row][i] * c[i][col];
-        }
-      }
     }
   };
 
@@ -175,12 +173,10 @@ namespace MatrixVector {
     typedef Dune::FieldMatrix<T, n, m> C;
     typedef Dune::FieldMatrix<T, m, k> D;
     static void addProduct(A& a, const T& b, const C& c, const D& d) {
-      for (size_t row = 0; row < n; ++row) {
-        for (size_t col = 0; col < k; ++col) {
+      for (size_t row = 0; row < n; ++row)
+        for (size_t col = 0; col < k; ++col)
           for (size_t i = 0; i < m; ++i)
             a[row][col] += b * c[row][i] * d[i][col];
-        }
-      }
     }
   };
 
-- 
GitLab