|
|
0f0231 |
From 9e94a4349186f7353e0d7b536b46bfa4df2483d0 Mon Sep 17 00:00:00 2001
|
|
|
0f0231 |
From: Ming-Hung Tsai <mtsai@redhat.com>
|
|
|
0f0231 |
Date: Wed, 2 Jun 2021 14:59:29 +0800
|
|
|
0f0231 |
Subject: [PATCH 10/10] [all] Remove unreachable code
|
|
|
0f0231 |
|
|
|
0f0231 |
---
|
|
|
0f0231 |
block-cache/io_engine.cc | 3 ---
|
|
|
0f0231 |
caching/hint_array.cc | 6 ------
|
|
|
0f0231 |
2 files changed, 9 deletions(-)
|
|
|
0f0231 |
|
|
|
0f0231 |
diff --git a/block-cache/io_engine.cc b/block-cache/io_engine.cc
|
|
|
0f0231 |
index 2fe4082..0158723 100644
|
|
|
0f0231 |
--- a/block-cache/io_engine.cc
|
|
|
0f0231 |
+++ b/block-cache/io_engine.cc
|
|
|
0f0231 |
@@ -174,9 +174,6 @@ aio_engine::wait_(timespec *ts)
|
|
|
0f0231 |
cbs_.free(cb);
|
|
|
0f0231 |
return optional<wait_result>(make_pair(false, context));
|
|
|
0f0231 |
}
|
|
|
0f0231 |
-
|
|
|
0f0231 |
- // shouldn't get here
|
|
|
0f0231 |
- return optional<wait_result>(make_pair(false, 0));
|
|
|
0f0231 |
}
|
|
|
0f0231 |
|
|
|
0f0231 |
struct timespec
|
|
|
0f0231 |
diff --git a/caching/hint_array.cc b/caching/hint_array.cc
|
|
|
0f0231 |
index 6514968..e133c5c 100644
|
|
|
0f0231 |
--- a/caching/hint_array.cc
|
|
|
0f0231 |
+++ b/caching/hint_array.cc
|
|
|
0f0231 |
@@ -56,9 +56,6 @@ namespace {
|
|
|
0f0231 |
default:
|
|
|
0f0231 |
throw runtime_error("invalid hint width");
|
|
|
0f0231 |
}
|
|
|
0f0231 |
-
|
|
|
0f0231 |
- // never get here
|
|
|
0f0231 |
- return std::shared_ptr<array_base>();
|
|
|
0f0231 |
}
|
|
|
0f0231 |
|
|
|
0f0231 |
//--------------------------------
|
|
|
0f0231 |
@@ -93,9 +90,6 @@ namespace {
|
|
|
0f0231 |
default:
|
|
|
0f0231 |
throw runtime_error("invalid hint width");
|
|
|
0f0231 |
}
|
|
|
0f0231 |
-
|
|
|
0f0231 |
- // never get here
|
|
|
0f0231 |
- return std::shared_ptr<array_base>();
|
|
|
0f0231 |
}
|
|
|
0f0231 |
|
|
|
0f0231 |
//--------------------------------
|
|
|
0f0231 |
--
|
|
|
0f0231 |
1.8.3.1
|
|
|
0f0231 |
|