From 45ebaf705d1e37f6b0af84f27767c141496c2f1e Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 11 Oct 2011 17:02:20 -0700 Subject: [PATCH] cls_rgw: remove the write_bucket_dir function. It's no longer called anywhere. Hurray, we don't do our own read-modify-write cycle any more (and can exploit the power of btrees later)! Signed-off-by: Greg Farnum --- src/cls_rgw.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/cls_rgw.cc b/src/cls_rgw.cc index e2b612886f74a..f1252a31188aa 100644 --- a/src/cls_rgw.cc +++ b/src/cls_rgw.cc @@ -67,16 +67,6 @@ static int read_bucket_dir(cls_method_context_t hctx, struct rgw_bucket_dir& dir return 0; } -static int write_bucket_dir(cls_method_context_t hctx, struct rgw_bucket_dir& dir) -{ - bufferlist bl; - - ::encode(dir, bl); - - int rc = cls_cxx_write_full(hctx, &bl); - return rc; -} - int rgw_bucket_list(cls_method_context_t hctx, bufferlist *in, bufferlist *out) { bufferlist bl; -- 2.39.5