Commit 23a68064 authored by Hardik_Patel_12's avatar Hardik_Patel_12 Committed by Fabiano Sant'Ana
Browse files

Issue #3112425 by Hardik_Patel_12, kishor_kolekar, wundo: Remove unused variables

parent 548a8bab
......@@ -158,9 +158,6 @@ class CaptchaImageResponse extends Response {
}
imagefilledrectangle($image, 0, 0, $width, $height, $background_color);
// Do we need to draw in RTL mode?
global $language;
$result = $this->printString($image, $width, $height, $fonts, $font_size, $code);
if (!$result) {
return FALSE;
......@@ -342,7 +339,6 @@ class CaptchaImageResponse extends Response {
$character_quantity = count($characters);
$foreground_rgb = $this->hexToRgb($this->config->get('image_captcha_foreground_color'));
$background_rgb = $this->hexToRgb($this->config->get('image_captcha_background_color'));
$foreground_color = imagecolorallocate($image, $foreground_rgb[0], $foreground_rgb[1], $foreground_rgb[2]);
// Precalculate the value ranges for color randomness.
$foreground_randomness = $this->config->get('image_captcha_foreground_color_randomness');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment