Skip to content

Commit

Permalink
Remove unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Oct 20, 2021
1 parent 4e7acbb commit 77346f5
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions ospd_openvas/nvticache.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,22 +254,6 @@ def get_nvt_prefs(self, oid: str) -> Optional[List[str]]:
key = f'oid:{oid}:prefs'
return OpenvasDB.get_list_item(self.ctx, key)

def get_nvt_timeout(self, oid: str) -> Optional[str]:
"""Get NVT timeout
Arguments:
ctx: Redis context to be used.
oid: OID of VT from which to get the script timeout.
Returns:
The timeout.
"""
return OpenvasDB.get_single_item(
self.ctx,
f"nvt:{oid}",
index=NVT_META_FIELDS.index("NVT_TIMEOUT_POS"),
)

def get_nvt_tags(self, oid: str) -> Optional[Dict[str, str]]:
"""Get Tags of the given OID.
Expand Down

0 comments on commit 77346f5

Please sign in to comment.