Skip to content

Commit

Permalink
Remove non-existing delete method
Browse files Browse the repository at this point in the history
  • Loading branch information
sweikert committed Jan 5, 2022
1 parent bf9b8ec commit 526b409
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
9 changes: 0 additions & 9 deletions src/Endpoints/ProductnameEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,4 @@ public function update(array $data = []): ?BaseResource
return $this->rest_update($data);
}

/**
* @param array $filter
* @return BaseResource|null
* @throws ApiException
*/
public function delete(array $filter = []): ?BaseResource
{
return $this->rest_delete($filter);
}
}
18 changes: 1 addition & 17 deletions src/Resources/Productname.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,5 @@ public function update(array $body = []): ?BaseResource

return ResourceFactory::createFromApiResult($result->data, new Productname($this->client));
}

/**
* @return null
* @throws ApiException
*/
public function delete()
{
if (! isset($this->links->self)) {
return $this;
}

return $this->client->performHttpCallToFullUrl(
OroApiClient::HTTP_DELETE,
$this->links->self
);
}


}

0 comments on commit 526b409

Please sign in to comment.