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