diff options
| author | Mike Wey | 2014-08-07 19:43:16 +0200 |
|---|---|---|
| committer | Mike Wey | 2014-08-07 19:43:16 +0200 |
| commit | 5d7d16070fbff9dfcbae668681bd528467aa26eb (patch) | |
| tree | 45171b2c471d9df68118efa59c7679d6e98f4af9 | |
| parent | d5eae0ce6534bbadf98ba8a3e4e767740e7ad150 (diff) | |
Fix statement not reachable warnings.
| -rw-r--r-- | dmagick/DrawingContext.d | 1 | ||||
| -rw-r--r-- | dmagick/Exception.d | 4 |
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 ~= |
