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