Skip to contentSkip to conversation

master - cleanup: remove unused code

PATCH Zdenek Kabelac 1 participant 1 message Nov 26, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b7b59ad9323cd38889e78068813c311170920d9d
Commit:        b7b59ad9323cd38889e78068813c311170920d9d
Parent:        528695ec2004dcadaacba99d51685ac4a0582ea7
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Nov 25 15:45:19 2015 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Nov 26 09:27:37 2015 +0100

cleanup: remove unused code

Remove long outstand unused code lines, which were already been obsoleted by other code.

Statuses and snapshot tree creation is already handled differently.

Also drop some 'extra' log_error() and use only stack; since error has already been reported.

---
 lib/activate/activate.c    |    7 --
 lib/activate/dev_manager.c |  218 ++------------------------------------------
 2 files changed, 7 insertions(+), 218 deletions(-)
lib/activate/activate.c +0 -7
index 4bcfcd6..47c675c 100644
@@ -1977,13 +1977,6 @@ int lv_suspend_if_active(struct cmd_context *cmd, const char *lvid_s, unsigned o
 	return _lv_suspend(cmd, lvid_s, &laopts, 0, lv, lv_pre);
 }
 
-/* No longer used */
-/***********
-int lv_suspend(struct cmd_context *cmd, const char *lvid_s)
-{
-	return _lv_suspend(cmd, lvid_s, 1);
-}
-***********/
 
 static int _lv_resume(struct cmd_context *cmd, const char *lvid_s,
 		      struct lv_activate_opts *laopts, int error_if_not_active,
lib/activate/dev_manager.c +7 -211

269 lines not on this page · raw message