Skip to content

Commit fa943b7

Browse files
committed
Removing dead code
1 parent 4525540 commit fa943b7

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/InnerResultArray.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ class InnerResultArray extends InnerResultIterator
5353
*/
5454
public function offsetExists($offset)
5555
{
56-
if ($this->count === 0) {
57-
return false;
58-
}
5956
try {
6057
$this->toIndex($offset);
6158
} catch (TDBMInvalidOffsetException $e) {
@@ -125,9 +122,6 @@ public function next()
125122
*/
126123
public function rewind()
127124
{
128-
if ($this->count === 0) {
129-
return;
130-
}
131125
if (!$this->fetchStarted) {
132126
$this->executeQuery();
133127
}

src/InnerResultIterator.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,6 @@ public static function createInnerResultIterator(string $magicSql, array $parame
9393
return $iterator;
9494
}
9595

96-
public static function createEmpyIterator(): self
97-
{
98-
$iterator = new static();
99-
$iterator->count = 0;
100-
$iterator->logger = new NullLogger();
101-
return $iterator;
102-
}
103-
10496
private function getQuery(): string
10597
{
10698
$sql = $this->magicQuery->buildPreparedStatement($this->magicSql, $this->parameters);

0 commit comments

Comments
 (0)