summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2014-06-30 01:02:14 -0500
committerBobby Bingham <koorogi@koorogi.info>2014-06-30 08:36:08 -0500
commit4178350f795d568cdba861b6200bb9a33944e1c9 (patch)
treea79be6ca1e2348e0952704b1f9a8a1ff22de337e
parentbc91f97fe8186b43a2b876c65b9583ac18d9aab4 (diff)
Remove unnecessary safeguard in rotate
-rw-r--r--wikisort.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/wikisort.c b/wikisort.c
index db74029..ba4db55 100644
--- a/wikisort.c
+++ b/wikisort.c
@@ -32,7 +32,6 @@ static void reverse(char *base, size_t nmel, size_t width)
/* rotates left */
static void rotate(char *base, size_t nmel, size_t width, size_t shift)
{
- if (shift == 0 || shift == nmel) return;
reverse(base, shift, width);
reverse(base + shift * width, nmel - shift, width);
reverse(base, nmel, width);