From 76642a2046d8f9a4774cd561ea2899a2890b3370 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 26 Aug 2013 04:36:45 +0200
Subject: [PATCH] Removed unnecessary condition.

---
 src/windows.c | 3 +--
 src/windows.h | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/windows.c b/src/windows.c
index 41eaae9..50a48e3 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -547,8 +547,7 @@ extern void cycle_active_win(struct WinMeta * wmeta, char dir)
 extern uint8_t shift_active_win(struct WinMeta * wmeta, char dir)
 {
     if (   0 == wmeta->active                        /* No shifting with < 2  */
-        || wmeta->_chain_start == wmeta->_chain_end  /* windows visible or    */
-        || (dir != 'f' && dir != 'b'))               /* wrong direction char. */
+        || wmeta->_chain_start == wmeta->_chain_end) /* windows visible.      */
     {
         return 0;
     }
diff --git a/src/windows.h b/src/windows.h
index 7e666ac..38bb729 100644
--- a/src/windows.h
+++ b/src/windows.h
@@ -151,7 +151,7 @@ extern void cycle_active_win(struct WinMeta * wmeta, char dir);
 
 
 
-/* Move active window forwards ("dir" == "f") or backwards ("dir" == "b").
+/* Move active window forwards ("dir" == "f") or backwards (any other "dir").
  * Wrap around in the window chain if start / end of it is met. Does nothing if
  * no window is active.
  */
-- 
2.30.2