Skip to content

Commit ff33837

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
Remove unused std::string variables to fix -Wunused-variable warnings.
PiperOrigin-RevId: 1002723432
1 parent 7a71843 commit ff33837

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎eval/compiler/resolver.cc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ std::vector<cel::FunctionRegistry::LazyOverload> Resolver::FindLazyOverloads(
196196
auto prefixes = GetPrefixesFor(name);
197197
for (const auto& prefix : prefixes) {
198198
std::string qualified_name = absl::StrCat(prefix, name);
199-
funcs = function_registry_.FindLazyOverloadsByArity(name, receiver_style,
200-
arity);
199+
funcs = function_registry_.FindLazyOverloadsByArity(qualified_name,
200+
receiver_style, arity);
201201
if (!funcs.empty()) {
202202
return funcs;
203203
}

‎eval/eval/function_step.cc‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ Value NoOverloadResult(absl::string_view name,
192192

193193
// If no errors or unknowns in input args, create new CelError for missing
194194
// overload.
195-
std::string signature;
196195
if (receiver_style) {
197196
if (args.empty()) {
198197
// Should not be possible, but return a sensible error in case of logic

0 commit comments

Comments
 (0)