cvs: pear /Payment_Process2/Payment/Process2 Dummy.php

From: Date: Wed, 08 Apr 2009 08:36:23 +0000
Subject: cvs: pear /Payment_Process2/Payment/Process2 Dummy.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-55899@lists.php.net to get a copy of this message
clockwerx Wed Apr 8 08:36:23 2009 UTC Modified files: /pear/Payment_Process2/Payment/Process2 Dummy.php Log: Removed dead code http://cvs.php.net/viewvc.cgi/pear/Payment_Process2/Payment/Process2/Dummy.php?r1=1.6&r2=1.7&diff_format=u Index: pear/Payment_Process2/Payment/Process2/Dummy.php diff -u pear/Payment_Process2/Payment/Process2/Dummy.php:1.6 pear/Payment_Process2/Payment/Process2/Dummy.php:1.7 --- pear/Payment_Process2/Payment/Process2/Dummy.php:1.6 Mon Mar 16 03:24:52 2009 +++ pear/Payment_Process2/Payment/Process2/Dummy.php Wed Apr 8 08:36:23 2009 @@ -36,7 +36,7 @@ * @author Ian Eure <ieure@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: Dummy.php,v 1.6 2009/03/16 03:24:52 clockwerx Exp $ + * @version CVS: $Id: Dummy.php,v 1.7 2009/04/08 08:36:23 clockwerx Exp $ * @link http://pear.php.net/package/Payment_Process */ @@ -103,15 +103,6 @@ // Sanity check $this->validate(); - if ($this->_options['randomResult']) { - $n = rand(0, count($this->_returnValues) - 1); - $code = $this->_returnValues[$n]['code']; - $message = $this->_returnValues[$n]['message']; - } else { - $code = $this->_options['returnCode']; - $message = $this->_options['returnMessage']; - } - return Payment_Process2_Result::factory('Dummy', null, $this); }

« previous php.pear.cvs (#55899) next »