]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw-rest: remove redundant virtual functions 8656/head
authorKarol Mroz <kmroz@suse.com>
Tue, 19 Apr 2016 15:03:52 +0000 (17:03 +0200)
committerKarol Mroz <kmroz@suse.com>
Tue, 19 Apr 2016 15:03:52 +0000 (17:03 +0200)
'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 <kmroz@suse.com>
src/rgw/rgw_rest.h
src/rgw/rgw_rest_s3.h

index bb288ca1ae63f8d979bbfea8fb5ee821c0b416d1..928774bd3fd6d0f7e0babe6f0bf809c9bcf350f5 100644 (file)
@@ -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;
index 9278964d34f6d737b1190afcc2b2d7e789f5ebe0..1227b605fd75e1cb6d329163ef336bb23c6810a5 100644 (file)
@@ -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 {