From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - cleanup: remove unused code
Date: Wed, 6 Oct 2021 13:47:52 +0000 (GMT) [thread overview]
Message-ID: <20211006134752.1C1953857C56@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a841babaf7f0108797ef18af0777721742c8656c
Commit: a841babaf7f0108797ef18af0777721742c8656c
Parent: 5ea426e65628218569ede461312d80ba5d1c50fb
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Fri Oct 1 13:47:43 2021 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Wed Oct 6 15:43:31 2021 +0200
cleanup: remove unused code
---
lib/metadata/metadata.c | 12 ------------
lib/metadata/metadata.h | 3 ---
2 files changed, 15 deletions(-)
diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
index 146ce476d..d5ef7f7cb 100644
--- a/lib/metadata/metadata.c
+++ b/lib/metadata/metadata.c
@@ -1648,18 +1648,6 @@ struct lv_list *find_lv_in_vg(const struct volume_group *vg,
return NULL;
}
-struct lv_list *find_lv_in_lv_list(const struct dm_list *ll,
- const struct logical_volume *lv)
-{
- struct lv_list *lvl;
-
- dm_list_iterate_items(lvl, ll)
- if (lvl->lv == lv)
- return lvl;
-
- return NULL;
-}
-
struct logical_volume *find_lv_in_vg_by_lvid(const struct volume_group *vg,
const union lvid *lvid)
{
diff --git a/lib/metadata/metadata.h b/lib/metadata/metadata.h
index 3b3145d2c..95ca320e6 100644
--- a/lib/metadata/metadata.h
+++ b/lib/metadata/metadata.h
@@ -395,9 +395,6 @@ int add_pv_to_vg(struct volume_group *vg, const char *pv_name,
struct logical_volume *find_lv_in_vg_by_lvid(const struct volume_group *vg,
const union lvid *lvid);
-struct lv_list *find_lv_in_lv_list(const struct dm_list *ll,
- const struct logical_volume *lv);
-
/* FIXME Merge these functions with ones above */
struct physical_volume *find_pv(struct volume_group *vg, struct device *dev);
reply other threads:[~2021-10-06 13:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211006134752.1C1953857C56@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.