Skip to content

Commit

Permalink
clean-up code
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Jul 1, 2024
1 parent 6aeb6dd commit 9acdc10
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/Definition/PhysicalLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
use Bartlett\Sarif\Internal\JsonSerializable;
use Bartlett\Sarif\Property;

use LogicException;

/**
* A physical location relevant to a result.
* Specifies a reference to a programming artifact together with a range of bytes or characters within that artifact.
Expand Down Expand Up @@ -61,10 +59,6 @@ public function __construct(?ArtifactLocation $artifactLocation = null, ?Address
$this->address = $address;
}

if (empty($address) && empty($artifactLocation)) {
throw new LogicException('Either "address" or "artifactLocation" are required. Nothing provided.');
}

$required = [];
$optional = [
'address',
Expand Down
3 changes: 0 additions & 3 deletions src/Factory/PhpSerializerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
use Bartlett\Sarif\Serializer\JsonSerializer;
use Bartlett\Sarif\Serializer\SerializerInterface;

use const JSON_PRETTY_PRINT;
use const JSON_UNESCAPED_SLASHES;

/**
* @author Laurent Laville
* @since Release 1.2.0
Expand Down

0 comments on commit 9acdc10

Please sign in to comment.