diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2012-01-09 19:48:44 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-01-10 06:26:05 -0800 |
commit | 979e12f16b57cbb848fb9096d673dc58ed9b67a4 (patch) | |
tree | 7aaae9eb15e525c72b8dd4ad03048edf30dc8c97 /xlators/cluster/afr/src/afr-self-heal-common.c | |
parent | 5303f98f674ab5cb600dde0394ff7ddd5ba3c98a (diff) |
cluster/afr: Remove dead code
Change-Id: I239128c51b728fbb7814fd6a41020b76c88fbd93
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
BUG: 772876
Reviewed-on: http://review.gluster.com/2623
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-common.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index 0558fafaae5..ad84f8541dd 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -81,21 +81,6 @@ afr_sh_mark_source_sinks (call_frame_t *frame, xlator_t *this) sh->active_sinks = active_sinks; } -/** - * sink_count - return number of sinks in sources array - */ - -int -afr_sh_sink_count (int sources[], int child_count) -{ - int i = 0; - int sinks = 0; - for (i = 0; i < child_count; i++) - if (!sources[i]) - sinks++; - return sinks; -} - int afr_sh_source_count (int sources[], int child_count) { @@ -892,25 +877,6 @@ afr_sh_has_entry_pending (dict_t *xattr, xlator_t *this) return 0; } - -/** - * is_matrix_zero - return true if pending matrix is all zeroes - */ - -int -afr_sh_is_matrix_zero (int32_t *pending_matrix[], int child_count) -{ - int i = 0; - int j = 0; - - for (i = 0; i < child_count; i++) - for (j = 0; j < child_count; j++) - if (pending_matrix[i][j]) - return 0; - return 1; -} - - int afr_sh_missing_entries_done (call_frame_t *frame, xlator_t *this) { |