]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/scheduler: remove unused PGOpItem::maybe_get_mosd_op
authorSamuel Just <sjust@redhat.com>
Tue, 4 Apr 2023 23:22:59 +0000 (23:22 +0000)
committerSridhar Seshasayee <sseshasa@redhat.com>
Thu, 27 Apr 2023 13:13:33 +0000 (18:43 +0530)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/scheduler/OpSchedulerItem.h

index 48a3de7c0db25a5e15ba498a109564b11d5ef499..c74722328843d273df65ca32097bc37b38fbac4b 100644 (file)
@@ -213,15 +213,6 @@ public:
 class PGOpItem : public PGOpQueueable {
   OpRequestRef op;
 
-  const MOSDOp *maybe_get_mosd_op() const {
-    auto req = op->get_req();
-    if (req->get_type() == CEPH_MSG_OSD_OP) {
-      return op->get_req<MOSDOp>();
-    } else {
-      return nullptr;
-    }
-  }
-
 public:
   PGOpItem(spg_t pg, OpRequestRef op) : PGOpQueueable(pg), op(std::move(op)) {}