Skip to content

Commit

Permalink
Remove obsolete ::rebase() operation.
Browse files Browse the repository at this point in the history
Use ::normalize() instead.
  • Loading branch information
drupol committed Jan 8, 2020
1 parent eb1c4ae commit 486b835
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 70 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ the methods always return the same values for the same inputs.
| `pluck` | new Collection object | [Pluck.php](./src/Operation/Pluck.php)
| `prepend` | new Collection object | [Prepend.php](./src/Operation/Prepend.php)
| `product` | new Collection object | [Product.php](./src/Operation/Product.php)
| `rebase` | new Collection object | [Collection.php](./src/Operation/Collection.php)
| `reduce` | mixed | [Reduce.php](./src/Transformation/Reduce.php)
| `reduction` | new Collection object | [Reduction.php](./src/Operation/Reduction.php)
| `reverse` | new Collection object | [Reverse.php](./src/Operation/Reverse.php)
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ prepend
product
-------

rebase
------

reduction
---------

Expand Down
11 changes: 0 additions & 11 deletions spec/loophp/collection/CollectionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -923,17 +923,6 @@ public function it_can_prepend(): void
->shouldIterateAs(['A', 'B', 'C', 'D', 'E', 'F']);
}

public function it_can_rebase(): void
{
$this
->beConstructedThrough('with', [range('A', 'C')]);

$this
->rebase()
->all()
->shouldBeEqualTo($this->all());
}

public function it_can_reduce(): void
{
$this
Expand Down
11 changes: 0 additions & 11 deletions src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
use loophp\collection\Operation\Prepend;
use loophp\collection\Operation\Product;
use loophp\collection\Operation\Range;
use loophp\collection\Operation\Rebase;
use loophp\collection\Operation\Reduction;
use loophp\collection\Operation\Reverse;
use loophp\collection\Operation\RSample;
Expand Down Expand Up @@ -410,16 +409,6 @@ public static function range(int $start = 0, $end = INF, $step = 1): CollectionI
return (new self())->run(new Range($start, $end, $step));
}

/**
* {@inheritdoc}
*
* @return \loophp\collection\Contract\Collection
*/
public function rebase(): BaseInterface
{
return $this->run(new Rebase());
}

/**
* {@inheritdoc}
*/
Expand Down
1 change: 0 additions & 1 deletion src/Contract/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ interface Collection extends
Pluckable,
Prependable,
Productable,
Rebaseable,
Reduceable,
Reductionable,
Reverseable,
Expand Down
16 changes: 0 additions & 16 deletions src/Contract/Rebaseable.php

This file was deleted.

27 changes: 0 additions & 27 deletions src/Operation/Rebase.php

This file was deleted.

0 comments on commit 486b835

Please sign in to comment.