aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-receive.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-08-02 20:24:55 -0500
committerDavid Sterba <dsterba@suse.cz>2013-09-03 19:40:47 +0200
commit514aa5d8f10a60bd2642cb15c3708a21f79501e4 (patch)
tree3eef86dfa53d0a342fc8dd2557145acf7099354a /cmds-receive.c
parent4e8c4d4ba72cba988a072246ce6de50e2e190c68 (diff)
downloadbtrfs-progs-514aa5d8f10a60bd2642cb15c3708a21f79501e4.tar.gz
btrfs-progs-514aa5d8f10a60bd2642cb15c3708a21f79501e4.tar.xz
btrfs-progs-514aa5d8f10a60bd2642cb15c3708a21f79501e4.zip
btrfs-progs: drop weird indirections & dead code from send/receive
cmds-recieve.c & cmds-send.c seem to have weird wrappers and indirections, and "groups" of commands which have only one member, which are never referenced in the code. I think these can be removed. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Stefan Behrens <sbehrens@giantdisaster.de> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-receive.c')
-rw-r--r--cmds-receive.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/cmds-receive.c b/cmds-receive.c
index 4e480f9..7abce76 100644
--- a/cmds-receive.c
+++ b/cmds-receive.c
@@ -907,7 +907,7 @@ out:
return ret;
}
-static int do_cmd_receive(int argc, char **argv)
+int cmd_receive(int argc, char **argv)
{
int c;
char *tomnt = NULL;
@@ -960,11 +960,6 @@ static int do_cmd_receive(int argc, char **argv)
return ret;
}
-static const char * const receive_cmd_group_usage[] = {
- "btrfs receive <command> <args>",
- NULL
-};
-
const char * const cmd_receive_usage[] = {
"btrfs receive [-ve] [-f <infile>] <mount>",
"Receive subvolumes from stdin.",
@@ -988,15 +983,3 @@ const char * const cmd_receive_usage[] = {
" is recognized or on EOF.",
NULL
};
-
-const struct cmd_group receive_cmd_group = {
- receive_cmd_group_usage, NULL, {
- { "receive", do_cmd_receive, cmd_receive_usage, NULL, 0 },
- { 0, 0, 0, 0, 0 },
- },
-};
-
-int cmd_receive(int argc, char **argv)
-{
- return do_cmd_receive(argc, argv);
-}