Skip to content

Commit

Permalink
chore: remove some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed Nov 26, 2023
1 parent 7ddffc1 commit d7c7a53
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions ibis/expr/rewrites.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ def filter_wrap_reduction_value(_):
return ops.ScalarSubquery(value.to_expr().as_table())


@replace(p.Field(rel=p.Aggregate(groups=Eq(FrozenDict()))))
def filter_wrap_field(_):
expr = _.rel.fields[_.name].to_expr().as_table()
return ops.ScalarSubquery(expr)


@replace(p.Project(y @ p.Relation) & Check(_.schema == y.schema))
def complete_reprojection(_, y):
# TODO(kszucs): this could be moved to the pattern itself but not sure how
Expand Down
3 changes: 0 additions & 3 deletions ibis/expr/types/relations.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from __future__ import annotations

import collections
import contextlib
import functools
import itertools
import operator
import re
Expand All @@ -16,7 +14,6 @@
import ibis.common.exceptions as com
import ibis.expr.datatypes as dt
import ibis.expr.operations as ops
from ibis.expr.rewrites import filter_wrap_field
import ibis.expr.schema as sch
from ibis import util
from ibis.common.annotations import annotated
Expand Down

0 comments on commit d7c7a53

Please sign in to comment.