Skip to content

Commit e04156f

Browse files
committed
Cleans up unused code
1 parent baa0b4c commit e04156f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Tempest/Database/src/Builder/QueryBuilders/CountQueryBuilder.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ final class CountQueryBuilder
1818
{
1919
use HasConditions;
2020

21-
/** @var class-string<TModelClass> $modelClass */
22-
private readonly string $modelClass;
23-
2421
private ?ModelDefinition $modelDefinition;
2522

2623
private CountStatement $count;
@@ -30,7 +27,6 @@ final class CountQueryBuilder
3027
public function __construct(string|object $model, ?string $column = null)
3128
{
3229
$this->modelDefinition = ModelDefinition::tryFrom($model);
33-
$this->modelClass = is_object($model) ? $model::class : $model;
3430

3531
$this->count = new CountStatement(
3632
table: $this->resolveTable($model),
@@ -91,11 +87,6 @@ public function build(array $bindings = []): Query
9187
return new Query($this->count, [...$this->bindings, ...$bindings]);
9288
}
9389

94-
private function clone(): self
95-
{
96-
return clone $this;
97-
}
98-
9990
private function resolveTable(string|object $model): TableDefinition
10091
{
10192
if ($this->modelDefinition === null) {

0 commit comments

Comments
 (0)