Browse Source

refs(discover): Remove unused `resolve_discover_aliases` function (#35418)

Working to convert alert rule to use `QueryBuilder`. Cleaning up some old functions to make
navigating the code easier
Dan Fuller 2 years ago
parent
commit
bb3a5d54de
1 changed files with 0 additions and 14 deletions
  1. 0 14
      src/sentry/snuba/discover.py

+ 0 - 14
src/sentry/snuba/discover.py

@@ -43,7 +43,6 @@ from sentry.utils.snuba import (
     is_span_op_breakdown,
     naiveify_datetime,
     resolve_column,
-    resolve_snuba_aliases,
     to_naive_timestamp,
 )
 
@@ -98,19 +97,6 @@ def is_real_column(col):
     return True
 
 
-def resolve_discover_aliases(snuba_filter, function_translations=None):
-    """
-    Resolve the public schema aliases to the discover dataset.
-
-    Returns a copy of the input structure, and includes a
-    `translated_columns` key containing the selected fields that need to
-    be renamed in the result set.
-    """
-    return resolve_snuba_aliases(
-        snuba_filter, resolve_discover_column, function_translations=function_translations
-    )
-
-
 def zerofill(data, start, end, rollup, orderby):
     rv = []
     start = int(to_naive_timestamp(naiveify_datetime(start)) / rollup) * rollup