Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 38360 invoked from network); 24 Feb 2010 11:33:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2010 11:33:45 -0000 Received: (qmail 47321 invoked by uid 500); 24 Feb 2010 11:33:44 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 47219 invoked by uid 500); 24 Feb 2010 11:33:43 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 47210 invoked by uid 99); 24 Feb 2010 11:33:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 11:33:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 11:33:43 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 781C523889E2; Wed, 24 Feb 2010 11:33:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r915756 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/solvers/BrentSolver.java Date: Wed, 24 Feb 2010 11:33:22 -0000 To: commits@commons.apache.org From: luc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100224113322.781C523889E2@eris.apache.org> Author: luc Date: Wed Feb 24 11:33:22 2010 New Revision: 915756 URL: http://svn.apache.org/viewvc?rev=915756&view=rev Log: removed unreachable code JIRA: MATH-343 Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/solvers/BrentSolver.java Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/solvers/BrentSolver.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/solvers/BrentSolver.java?rev=915756&r1=915755&r2=915756&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/solvers/BrentSolver.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/solvers/BrentSolver.java Wed Feb 24 11:33:22 2010 @@ -133,13 +133,8 @@ return solve(f, initial, yInitial, max, yMax, initial, yInitial); } - if (yMin * yMax > 0) { - throw MathRuntimeException.createIllegalArgumentException( - NON_BRACKETING_MESSAGE, min, max, yMin, yMax); - } - - // full Brent algorithm starting with provided initial guess - return solve(f, min, yMin, max, yMax, initial, yInitial); + throw MathRuntimeException.createIllegalArgumentException( + NON_BRACKETING_MESSAGE, min, max, yMin, yMax); }