]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: remove redundant NamedState
authorSage Weil <sage@inktank.com>
Sat, 29 Sep 2012 07:51:08 +0000 (00:51 -0700)
committerSage Weil <sage@inktank.com>
Sat, 29 Sep 2012 07:51:08 +0000 (00:51 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/PG.h

index 85c48d29cf834181631f08448638371f9f2e14d1..cf0173352da894299e4808a65258025bb2da984e 100644 (file)
@@ -510,6 +510,7 @@ public:
   };
 
 
+
 protected:
 
   /*
@@ -1138,13 +1139,6 @@ public:
     friend class RecoveryMachine;
 
     /* States */
-    struct NamedState {
-      const char *state_name;
-      utime_t enter_time;
-      const char *get_state_name() { return state_name; }
-      NamedState() : state_name(NULL), enter_time(ceph_clock_now(g_ceph_context)) {}
-      virtual ~NamedState() {}
-    };
 
     struct Crashed : boost::statechart::state< Crashed, RecoveryMachine >, NamedState {
       Crashed(my_context ctx);