From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 96E2BA04C5; Sun, 6 Sep 2020 03:32:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9F2011C115; Sun, 6 Sep 2020 03:31:50 +0200 (CEST) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by dpdk.org (Postfix) with ESMTP id 0D99F1C0D7 for ; Sun, 6 Sep 2020 03:31:46 +0200 (CEST) Received: by mail-pg1-f193.google.com with SMTP id j34so897238pgi.7 for ; Sat, 05 Sep 2020 18:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YZAObi26Mj7i1wXxn0UqzwljKJJrpie5NpnVUpfmVQo=; b=lgjDkU8nxoeJYgMHCHSdMaO6I62McsIh1lZvWSxn7wENsvIQMGuEI0/odYyQXUo8KO 2Idb9Tl6H4VabOgUXmOhK5zBo1RucoEQE6rQ2jkscfxvAIVGhiHZ/hHM0XrEsL5/ArGY VMygJjAINZaE1RvB+WIM1wA3poDpWyTjWQEp033Nv1YSlX/NSyOJ+DLQg2q+he+rIoJe 3v8cyX/erREzhXea8Drl4YKTuit8NVARXrL8tubVwGKnkcXUKOw6/dh8/WCTbqmZ7XzN Merku2g1soQTcV83lG//PICR87f6DLaKCYfZLDTphhAM1OT92Gw4gC514egQuSGCte48 K3pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YZAObi26Mj7i1wXxn0UqzwljKJJrpie5NpnVUpfmVQo=; b=kIHLGJKFZKiXgMKD+kJloyM+p8QmCc0k4PLmthWeKWufFDkBp9k5iSzprCEVEHVHTQ KifxRcEnYZwe+GK15GeJRoeND0p4e58gw4RXco7ZtxiYveTngG2Y12ybexVX7jJBP/bx UIw3vzwN/zLGXt6i6gOuIeI9dXiI6eOsa2MeyRLvs+5juh4Ql5KlHMNtxSOGbkvlndvt S1Beof4DkwOxcvRZhDRASiw1m5uW/7/YxaeZTmwcb4Oh4EBOTkweHRps+TPJTJg4zcGm 45208oEsEhgZ8voCvBCxHRLsFInQGu8EurWg1kwDGO1m83w7JbnwUN/6/Embs5lOfa4k jfzA== X-Gm-Message-State: AOAM53185XbYZOtkTTaCjehqpz5++yetS2Cp3hdmqIQjQcXTrQkNFgkC aHxN20y9u48WAqZh/ugOCu37Uu7HduRTiw== X-Google-Smtp-Source: ABdhPJwNC/euFIrD6k52qeaXrclA8X+jBwL/WJ3aw2WdPN4Uzig0K7OY7oZbgw0nD+vdK2zRuaGcpg== X-Received: by 2002:a63:f00a:: with SMTP id k10mr12399278pgh.76.1599355905820; Sat, 05 Sep 2020 18:31:45 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id n127sm10731863pfn.155.2020.09.05.18.31.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Sep 2020 18:31:45 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Sat, 5 Sep 2020 18:31:26 -0700 Message-Id: <20200906013133.26360-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200906013133.26360-1-stephen@networkplumber.org> References: <20200906013133.26360-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 04/11] dpdk-pmdinfo: remove dead code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- usertools/dpdk-pmdinfo.py | 8 -------- 1 file changed, 8 deletions(-) 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() - # ======================================= -- 2.27.0