diff mbox series

[03/10] support/scripts/pkg-stats: drop unused cpeid_name() function

Message ID 20210107133948.2997849-4-thomas.petazzoni@bootlin.com
State Accepted
Headers show
Series CPE validation | expand

Commit Message

Thomas Petazzoni Jan. 7, 2021, 1:39 p.m. UTC
The cpeid_name() function is not used anywhere, drop it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 support/scripts/pkg-stats | 7 -------
 1 file changed, 7 deletions(-)
diff mbox series

Patch

diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index c084c54b60..9d28087d96 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -1060,13 +1060,6 @@  def parse_args():
     return args
 
 
-def cpeid_name(pkg):
-    try:
-        return pkg.cpeid.split(':')[1]
-    except Exception:  # cpeid may be None, or improperly formatted
-        return ''
-
-
 def __main__():
     args = parse_args()
     if args.packages: