Skip to content

Commit 1884d2c

Browse files
asedenocopybara-github
authored andcommitted
Remove unused things to clean up warnings.
PiperOrigin-RevId: 688573083
1 parent df2e5ea commit 1884d2c

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

common/type_factory.cc

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,10 @@
1414

1515
#include "common/type_factory.h"
1616

17-
#include "absl/base/attributes.h"
1817
#include "common/type.h"
19-
#include "common/type_kind.h"
2018

2119
namespace cel {
2220

23-
namespace {
24-
25-
bool IsValidMapKeyType(const Type& type) {
26-
switch (type.kind()) {
27-
case TypeKind::kDyn:
28-
ABSL_FALLTHROUGH_INTENDED;
29-
case TypeKind::kError:
30-
ABSL_FALLTHROUGH_INTENDED;
31-
case TypeKind::kBool:
32-
ABSL_FALLTHROUGH_INTENDED;
33-
case TypeKind::kInt:
34-
ABSL_FALLTHROUGH_INTENDED;
35-
case TypeKind::kUint:
36-
ABSL_FALLTHROUGH_INTENDED;
37-
case TypeKind::kString:
38-
return true;
39-
default:
40-
return false;
41-
}
42-
}
43-
44-
} // namespace
45-
4621
ListType TypeFactory::GetDynListType() { return ListType(); }
4722

4823
MapType TypeFactory::GetDynDynMapType() { return MapType(); }

internal/well_known_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,6 @@ class StructReflection final {
11961196
absl::Nullable<const google::protobuf::FieldDescriptor*> fields_field_ = nullptr;
11971197
absl::Nullable<const google::protobuf::FieldDescriptor*> fields_key_field_ = nullptr;
11981198
absl::Nullable<const google::protobuf::FieldDescriptor*> fields_value_field_ = nullptr;
1199-
google::protobuf::FieldDescriptor::CppStringType fields_key_field_string_type_;
12001199
};
12011200

12021201
absl::StatusOr<StructReflection> GetStructReflection(

0 commit comments

Comments
 (0)