From 5d7d16070fbff9dfcbae668681bd528467aa26eb Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Thu, 7 Aug 2014 19:43:16 +0200 Subject: Fix statement not reachable warnings. --- dmagick/DrawingContext.d | 1 - dmagick/Exception.d | 4 +--- 2 files changed, 1 insertion(+), 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 ~= -- cgit v1.2.3