[04/11] dpdk-pmdinfo: remove dead code

Message ID 20200906013133.26360-5-stephen@networkplumber.org (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series Python script updates |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Stephen Hemminger Sept. 6, 2020, 1:31 a.m. UTC
  The method loadLocal() is never called, and if it was it would
throw an exception because it calling readLocal() without a filename.

Pylint spotted this.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 usertools/dpdk-pmdinfo.py | 8 --------
 1 file changed, 8 deletions(-)
  

Patch

diff --git a/usertools/dpdk-pmdinfo.py b/usertools/dpdk-pmdinfo.py
index 4fefdc83e583..9ee8fe9fa1ec 100755
--- a/usertools/dpdk-pmdinfo.py
+++ b/usertools/dpdk-pmdinfo.py
@@ -214,14 +214,6 @@  def readLocal(self, filename):
             self.contents = f.readlines()
         self.date = self.findDate(self.contents)
 
-    def loadLocal(self):
-        """
-        Loads database from local. If there is no file,
-        it creates a new one from web
-        """
-        self.date = idsfile[0].split("/")[1].split("-")[0]
-        self.readLocal()
-
 
 # =======================================