Skip to content

Commit 6e322ea

Browse files
committed
Merge pull request #150 from wmde/rmtd
Remove TODO
2 parents e4f7778 + 685e94b commit 6e322ea

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/HashArray.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,6 @@ public function removeByElementHash( $elementHash ) {
205205
* @return boolean Indicates if the element was added or not.
206206
*/
207207
public function addElement( Hashable $element ) {
208-
// TODO: this duplicates logic of preSetElement
209-
// Probably best update setElement in GenericArrayObject to return boolean it got from preSetElement
210208
$append = $this->acceptDuplicates || !$this->hasElementHash( $element->getHash() );
211209

212210
if ( $append ) {

0 commit comments

Comments
 (0)