]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: fixed unused function warnings in unittest_rbd_mirror
authorJason Dillaman <dillaman@redhat.com>
Fri, 12 Aug 2016 01:11:07 +0000 (21:11 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 11 Oct 2016 16:44:25 +0000 (12:44 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 3545d9ed19be8d3956f0db901ea9d3bb8b10d13d)

src/test/rbd_mirror/test_mock_ImageReplayer.cc
src/test/rbd_mirror/test_mock_ImageSyncThrottler.cc
src/tools/rbd_mirror/ImageReplayer.cc
src/tools/rbd_mirror/ImageReplayer.h

index 5f651af522387465b9db5d907984574aee6f0f5c..2477e035bcdbe639bf1187452b2b7bc42aa9e909 100644 (file)
@@ -168,7 +168,6 @@ ReplayStatusFormatter<librbd::MockTestImageCtx>* ReplayStatusFormatter<librbd::M
 
 // template definitions
 #include "tools/rbd_mirror/ImageReplayer.cc"
-template class rbd::mirror::ImageReplayer<librbd::MockTestImageCtx>;
 
 namespace rbd {
 namespace mirror {
index e624ed90e478e7cba4554e2ca67d896bd4ced8d2..772a49e0294229719b91e98714d2b3205b532c9e 100644 (file)
@@ -101,7 +101,6 @@ std::vector<MockImageSync *> MockImageSync::instances;
 
 // template definitions
 #include "tools/rbd_mirror/ImageSyncThrottler.cc"
-template class rbd::mirror::ImageSyncThrottler<librbd::MockTestImageCtx>;
 
 namespace rbd {
 namespace mirror {
index c87ad78ff995cc44470e5274bdc2bd00d371bb72..256216336c52b7d6eb4753f1f43d4e4c22f26762 100644 (file)
@@ -745,12 +745,6 @@ void ImageReplayer<I>::on_stop_journal_replay(int r, const std::string &desc)
   shut_down(0);
 }
 
-template <typename I>
-void ImageReplayer<I>::close_local_image(Context *on_finish)
-{
-  m_local_image_ctx->state->close(on_finish);
-}
-
 template <typename I>
 void ImageReplayer<I>::handle_replay_ready()
 {
index 36ca97d66ea57bd6c45da336d4fddf1640c94ca0..ba81deaa1ee5893f96a30cfca6ff6730f4044f9a 100644 (file)
@@ -201,8 +201,6 @@ protected:
 
   bool on_replay_interrupted();
 
-  void close_local_image(Context *on_finish); // for tests
-
 private:
   typedef typename librbd::journal::TypeTraits<ImageCtxT>::Journaler Journaler;
   typedef boost::optional<State> OptionalState;