Remove some warnings from clang. (#7533)

* Unused variable.
* Unnecessary virtual function.
This commit is contained in:
Jiaming Yuan
2022-01-05 03:28:21 +08:00
committed by GitHub
parent ec56d5869b
commit eea094e1bc
3 changed files with 4 additions and 9 deletions

View File

@@ -115,12 +115,10 @@ class JsonReader {
class JsonWriter {
static constexpr size_t kIndentSize = 2;
size_t n_spaces_;
std::vector<char>* stream_;
public:
explicit JsonWriter(std::vector<char>* stream) :
n_spaces_{0}, stream_{stream} {}
explicit JsonWriter(std::vector<char>* stream) : stream_{stream} {}
virtual ~JsonWriter() = default;