[llvm-branch-commits] [libc] d4bb3ef - [libc][NFC] Remove dead code
Guillaume Chatelet via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jan 19 00:16:58 PST 2021
Author: Guillaume Chatelet
Date: 2021-01-19T08:11:45Z
New Revision: d4bb3ef53276213d3ba8987da5f76f423b86160d
URL: https://github.com/llvm/llvm-project/commit/d4bb3ef53276213d3ba8987da5f76f423b86160d
DIFF: https://github.com/llvm/llvm-project/commit/d4bb3ef53276213d3ba8987da5f76f423b86160d.diff
LOG: [libc][NFC] Remove dead code
Added:
Modified:
libc/benchmarks/JSON.cpp
libc/benchmarks/LibcMemoryBenchmarkMain.cpp
Removed:
################################################################################
diff --git a/libc/benchmarks/JSON.cpp b/libc/benchmarks/JSON.cpp
index 24e41b3bf86a..f2a9d8b27f48 100644
--- a/libc/benchmarks/JSON.cpp
+++ b/libc/benchmarks/JSON.cpp
@@ -136,11 +136,6 @@ static Error fromJson(const json::Value &V, std::vector<T> &Out) {
return vectorFromJsonTemplate(V, Out);
}
-template <typename T>
-static Error fromJson(const json::Value &V, SmallVectorImpl<T> &Out) {
- return vectorFromJsonTemplate(V, Out);
-}
-
// Same as llvm::json::ObjectMapper but adds a finer error reporting mechanism.
class JsonObjectMapper {
const json::Object *O;
diff --git a/libc/benchmarks/LibcMemoryBenchmarkMain.cpp b/libc/benchmarks/LibcMemoryBenchmarkMain.cpp
index 770336e3205c..02b62bc74029 100644
--- a/libc/benchmarks/LibcMemoryBenchmarkMain.cpp
+++ b/libc/benchmarks/LibcMemoryBenchmarkMain.cpp
@@ -120,7 +120,6 @@ template <typename Benchmark> struct Harness : Benchmark {
std::function<unsigned()> SizeSampler,
std::function<unsigned()> OffsetSampler)
: Benchmark(BufferSize), BufferSize(BufferSize),
- BatchParameterCount(BatchParameterCount),
Parameters(BatchParameterCount), SizeSampler(SizeSampler),
OffsetSampler(OffsetSampler) {}
@@ -136,7 +135,6 @@ template <typename Benchmark> struct Harness : Benchmark {
private:
const size_t BufferSize;
- const size_t BatchParameterCount;
std::vector<ParameterType> Parameters;
std::function<unsigned()> SizeSampler;
std::function<unsigned()> OffsetSampler;
More information about the llvm-branch-commits
mailing list