From: Karol Mroz Date: Tue, 19 Apr 2016 15:03:52 +0000 (+0200) Subject: rgw-rest: remove redundant virtual functions X-Git-Tag: v11.0.0~488^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c1d0bd9ed8877cfaa24ef1bd52daddbce760dd9f;p=ceph.git rgw-rest: remove redundant virtual functions 'virtual int retarget()' is already declared and defined in the RGWHandler base class. RGWHandler_REST and RGWHandler_REST_S3 inherit accordingly also the purely virtual functions 'virtual int authorize()' and 'virtual int postauth_init()'. Signed-off-by: Karol Mroz --- diff --git a/src/rgw/rgw_rest.h b/src/rgw/rgw_rest.h index bb288ca1ae63..928774bd3fd6 100644 --- a/src/rgw/rgw_rest.h +++ b/src/rgw/rgw_rest.h @@ -391,14 +391,6 @@ public: virtual RGWOp* get_op(RGWRados* store); virtual void put_op(RGWOp* op); - - virtual int retarget(RGWOp* op, RGWOp** new_op) { - *new_op = op; - return 0; - } - - virtual int authorize() = 0; - // virtual int postauth_init(struct req_init_state *t) = 0; }; class RGWHandler_REST_SWIFT; diff --git a/src/rgw/rgw_rest_s3.h b/src/rgw/rgw_rest_s3.h index 9278964d34f6..1227b605fd75 100644 --- a/src/rgw/rgw_rest_s3.h +++ b/src/rgw/rgw_rest_s3.h @@ -468,10 +468,6 @@ public: return RGW_Auth_S3::authorize(store, s); } int postauth_init(); - virtual int retarget(RGWOp *op, RGWOp **new_op) { - *new_op = op; - return 0; - } }; class RGWHandler_REST_Service_S3 : public RGWHandler_REST_S3 {