]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: fixed unused function warnings in unittest_rbd_mirror 10703/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 12 Aug 2016 01:11:07 +0000 (21:11 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 16 Aug 2016 13:11:07 +0000 (09:11 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
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 34dee335c3f1fa09fe63d4ef5171ea91e36c4748..719a2c042a87ef2d94e09f4e5aa80cee8e4434ea 100644 (file)
@@ -704,12 +704,6 @@ void ImageReplayer<I>::on_stop_journal_replay()
   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 1b1a742ff64dab4d6e3b90ef2fe8183cdb672098..c0c60cfa510c9eeceaef4b77e6c5c36ccc8eb0e2 100644 (file)
@@ -199,8 +199,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;