Skip to content

Commit

Permalink
Btrfs: remove unused code with #if 0
Browse files Browse the repository at this point in the history
fs_path_remove is not used at the moment due to a previous patch.
Remove it for now (with #if 0) to avoid compile warnings.

Signed-off-by: Alexander Block <ablock84@googlemail.com>
  • Loading branch information
Alexander Block authored and Chris Mason committed Oct 1, 2012
1 parent b9291af commit 9ea3ef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/btrfs/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,15 @@ static int fs_path_add_from_extent_buffer(struct fs_path *p,
return ret;
}

#if 0
static void fs_path_remove(struct fs_path *p)
{
BUG_ON(p->reversed);
while (p->start != p->end && *p->end != '/')
p->end--;
*p->end = 0;
}
#endif

static int fs_path_copy(struct fs_path *p, struct fs_path *from)
{
Expand Down

0 comments on commit 9ea3ef5

Please sign in to comment.