]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: remove unused function
authorKarel Zak <kzak@redhat.com>
Mon, 17 Aug 2020 12:54:40 +0000 (14:54 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 08:19:02 +0000 (09:19 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu-cputype.c

index fc8321ef2e6fb113a995dce97a2cc3c943fcbbbd..d7f4c6744dd6a963d5f6665a0d11130f7de9a44a 100644 (file)
@@ -134,32 +134,6 @@ struct lscpu_cputype *lscpu_add_cputype(struct lscpu_cxt *cxt, struct lscpu_cput
        return ct;
 }
 
-static void lscpu_merge_cputype(struct lscpu_cputype *a, struct lscpu_cputype *b)
-{
-       if (!a->vendor && b->vendor)
-               a->vendor = xstrdup(b->vendor);
-       if (!a->machinetype && b->machinetype)
-               a->machinetype = xstrdup(b->machinetype);
-       if (!a->family && b->family)
-               a->family = xstrdup(b->family);
-       if (!a->model && b->model)
-               a->model = xstrdup(b->model);
-       if (!a->modelname && b->modelname)
-               a->modelname = xstrdup(b->modelname);
-       if (!a->revision && b->revision)
-               a->revision = xstrdup(b->revision);
-       if (!a->stepping && b->stepping)
-               a->stepping = xstrdup(b->stepping);
-       if (!a->bogomips && b->bogomips)
-               a->bogomips = xstrdup(b->bogomips);
-       if (!a->flags && b->flags)
-               a->flags = xstrdup(b->flags);
-       if (!a->mtid && b->mtid)
-               a->mtid = xstrdup(b->mtid);
-       if (!a->addrsz && b->addrsz)
-               a->addrsz = xstrdup(b->addrsz);
-}
-
 static void fprintf_cputypes(FILE *f, struct lscpu_cxt *cxt)
 {
        size_t i;