Skip to content

Commit

Permalink
refactor: remove unused private class property
Browse files Browse the repository at this point in the history
defined in the constructor, but never used in the code
  • Loading branch information
adevade authored and sherwinski committed Dec 5, 2022
1 parent 3272a61 commit 509a7ce
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Imgix/UrlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ class UrlBuilder {
const MAX_WIDTH = 8192;
const SRCSET_WIDTH_TOLERANCE = 0.08;

// constants cannot be dynamically assigned; keeping as a class variable instead
private $targetWidths;

public function __construct($domain, $useHttps = true, $signKey = "", $includeLibraryParam = true) {

if (!is_string($domain)) {
Expand All @@ -40,7 +37,6 @@ public function __construct($domain, $useHttps = true, $signKey = "", $includeLi
$this->useHttps = $useHttps;
$this->signKey = $signKey;
$this->includeLibraryParam = $includeLibraryParam;
$this->targetWidths = $this->targetWidths();
}

private function validateDomain($domain) {
Expand Down

0 comments on commit 509a7ce

Please sign in to comment.