Skip to content

Commit 0d7e0c3

Browse files
committed
Remove unused code
1 parent c1a8be2 commit 0d7e0c3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

graphql/core/execution/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: utf-8 -*-
22
import collections
3-
import re
43
from ..error import GraphQLError, format_error
54
from ..utils import type_from_ast, is_nullish
65
from ..language import ast
@@ -398,13 +397,6 @@ def complete_value(ctx, return_type, field_asts, info, result):
398397
return execute_fields(ctx, object_type, result, subfield_asts)
399398

400399

401-
CAMEL_CASE_PATTERN = re.compile(r'([a-z])([A-Z]+)')
402-
403-
404-
def camel_to_snake_case(name):
405-
return CAMEL_CASE_PATTERN.sub(lambda m: m.group(1) + '_' + m.group(2).lower(), name)
406-
407-
408400
def default_resolve_fn(source, args, info):
409401
"""If a resolve function is not given, then a default resolve behavior is used which takes the property of the source object
410402
of the same name as the field and returns it as the result, or if it's a function, returns the result of calling that function."""

0 commit comments

Comments
 (0)