DatabaseBase::deadlockLoop(): Remove unused variables
authorKevin Israel <pleasestand@live.com>
Sat, 19 Sep 2015 06:07:13 +0000 (02:07 -0400)
committerKevin Israel <pleasestand@live.com>
Sat, 19 Sep 2015 06:07:13 +0000 (02:07 -0400)
Follows-up 419221e4a71b.

Change-Id: Ia0d50e40600ca2cd7b90441b66340d3c290be85f

includes/db/Database.php

index 4ceebaf..1e54f55 100644 (file)
@@ -3226,9 +3226,6 @@ abstract class DatabaseBase implements IDatabase {
                                $retVal = call_user_func_array( $function, $args );
                                break;
                        } catch ( DBQueryError $e ) {
-                               $error = $this->lastError();
-                               $errno = $this->lastErrno();
-                               $sql = $this->lastQuery();
                                if ( $this->wasDeadlock() ) {
                                        // Retry after a randomized delay
                                        usleep( mt_rand( self::DEADLOCK_DELAY_MIN, self::DEADLOCK_DELAY_MAX ) );