From 77346f5ced6c7d2d7d08f6b5f621737c6653546d Mon Sep 17 00:00:00 2001 From: Juan Jose Nicola Date: Wed, 20 Oct 2021 03:46:53 -0500 Subject: [PATCH] Remove unnecessary method --- ospd_openvas/nvticache.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/ospd_openvas/nvticache.py b/ospd_openvas/nvticache.py index ecb2f074..86b86f46 100644 --- a/ospd_openvas/nvticache.py +++ b/ospd_openvas/nvticache.py @@ -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.