Skip to content

Commit 98fb793

Browse files
committed
Removing unused variable in function declaration
1 parent 18c0423 commit 98fb793

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

proto_processing_lib/proto_scrubber/field_checker_interface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class FieldCheckerInterface {
6868
// Can be used for stack overflow protection by each field checker.
6969
virtual FieldCheckResults CheckField(const std::vector<std::string>& path,
7070
const google::protobuf::Field* field,
71-
const int field_depth) const {
71+
const int /*field_depth*/) const {
7272
return CheckField(path, field);
7373
}
7474

@@ -77,7 +77,7 @@ class FieldCheckerInterface {
7777
virtual FieldCheckResults CheckField(
7878
const std::vector<std::string>& path,
7979
const google::protobuf::Field* field, const int field_depth,
80-
const google::protobuf::Type* parent_type) const {
80+
const google::protobuf::Type* /*parent_type*/) const {
8181
return CheckField(path, field, field_depth);
8282
}
8383

proto_processing_lib/proto_scrubber/field_mask_node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ absl::Status FieldMaskNode::InsertValueField(
227227
return AddChild(value, type_, "", false, next, end);
228228
}
229229

230-
const bool FieldMaskNode::HasChild(absl::string_view field_name) const {
230+
bool FieldMaskNode::HasChild(absl::string_view field_name) const {
231231
return children_.contains(field_name);
232232
}
233233

proto_processing_lib/proto_scrubber/field_mask_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class FieldMaskNode {
8282
std::unique_ptr<FieldMaskNode> Intersect(const FieldMaskNode& other) const;
8383

8484
// Whether there is a child node with given field name.
85-
const bool HasChild(absl::string_view field_name) const;
85+
bool HasChild(absl::string_view field_name) const;
8686

8787
// Finds the child node for the given field name. Returns nullptr if no
8888
// children exist for the field name.

0 commit comments

Comments
 (0)