Skip to content

Commit

Permalink
Remove duplicate function.
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed May 29, 2020
1 parent bc00fc1 commit 3b6d8b9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions thehive4py/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,19 +303,6 @@ def get_case(self, case_id):
except requests.exceptions.RequestException as e:
raise CaseException("Case fetch error: {}".format(e))

def delete_case(self, case_id):
"""
:param case_id: Case identifier
:return: requests.Response
:rtype: json
"""
req = self.url + "/api/case/{}".format(case_id)

try:
return requests.delete(req, proxies=self.proxies, auth=self.auth, verify=self.cert)
except requests.exceptions.RequestException as e:
raise CaseException("Case deletion error: {}".format(e))

def find_cases(self, **attributes):
return self.__find_rows("/api/case/_search", **attributes)

Expand Down

0 comments on commit 3b6d8b9

Please sign in to comment.