Skip to content

Commit

Permalink
Remove unused member variables
Browse files Browse the repository at this point in the history
Remove member varibles 'documentBuffer' and 'schemaBuffer' in
schematest.cpp because that they are not initialized in the constructor
and are not used.
  • Loading branch information
EstherWx committed Dec 14, 2023
1 parent f9d5341 commit 0ab8d47
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/unittest/schematest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2110,10 +2110,7 @@ TEST(SchemaValidator, ValidateMetaSchema_UTF16) {
template <typename SchemaDocumentType = SchemaDocument>
class RemoteSchemaDocumentProvider : public IGenericRemoteSchemaDocumentProvider<SchemaDocumentType> {
public:
RemoteSchemaDocumentProvider() :
documentAllocator_(documentBuffer_, sizeof(documentBuffer_)),
schemaAllocator_(schemaBuffer_, sizeof(schemaBuffer_))
{
RemoteSchemaDocumentProvider() {
const char* filenames[kCount] = {
"jsonschema/remotes/integer.json",
"jsonschema/remotes/subSchemas.json",
Expand Down Expand Up @@ -2176,8 +2173,6 @@ class RemoteSchemaDocumentProvider : public IGenericRemoteSchemaDocumentProvider
SchemaDocumentType* sd_[kCount];
typename DocumentType::AllocatorType documentAllocator_;
typename SchemaDocumentType::AllocatorType schemaAllocator_;
char documentBuffer_[16384];
char schemaBuffer_[128u * 1024];
};

TEST(SchemaValidator, TestSuite) {
Expand Down

0 comments on commit 0ab8d47

Please sign in to comment.