summaryrefslogtreecommitdiff
path: root/dmagick
diff options
context:
space:
mode:
authorMike Wey2014-08-07 19:43:16 +0200
committerMike Wey2014-08-07 19:43:16 +0200
commit5d7d16070fbff9dfcbae668681bd528467aa26eb (patch)
tree45171b2c471d9df68118efa59c7679d6e98f4af9 /dmagick
parentd5eae0ce6534bbadf98ba8a3e4e767740e7ad150 (diff)
Fix statement not reachable warnings.
Diffstat (limited to 'dmagick')
-rw-r--r--dmagick/DrawingContext.d1
-rw-r--r--dmagick/Exception.d4
2 files changed, 1 insertions, 4 deletions
diff --git a/dmagick/DrawingContext.d b/dmagick/DrawingContext.d
index 78bbba7..1d9a285 100644
--- a/dmagick/DrawingContext.d
+++ b/dmagick/DrawingContext.d
@@ -302,7 +302,6 @@ class DrawingContext
case DecorationType.UndefinedDecoration:
throw new DrawException("Undefined Decoration");
- break;
}
}
diff --git a/dmagick/Exception.d b/dmagick/Exception.d
index af3011f..269d4dd 100644
--- a/dmagick/Exception.d
+++ b/dmagick/Exception.d
@@ -69,10 +69,8 @@ class DMagickException : Exception
exceptions ~=
"case ExceptionType."~ severity ~"Error:
throw new "~ severity ~"Exception(reason, description, file, line);
- break;
case ExceptionType."~ severity ~"FatalError:
- throw new "~ severity ~"Error(reason, description, file, line);
- break;";
+ throw new "~ severity ~"Error(reason, description, file, line);";
}
return exceptions ~=