Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MoessnerFabian(Group) committed Dec 17, 2024
1 parent f81bc76 commit 8dfe644
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions logprep/filter/lucene_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ def _collect_children(self, tree: luqum.tree) -> List[FilterExpression]:
return expressions

def _create_field(self, tree: luqum.tree) -> Optional[FilterExpression]:
# ok also hier bin ich denke ich richtig. ich muss jetzt mal ueberlegen, was hier was macht. und dann kann ich
# entscheiden wie ich es umsetze
if isinstance(tree.expr, (Phrase, Word)):
key = tree.name.replace("\\", "")
key = key.split(".")
Expand Down Expand Up @@ -350,7 +348,6 @@ def _get_filter_expression(
if self._special_fields.items():
for sf_key, sf_value in self._special_fields.items():
if sf_value is True or dotted_field in sf_value:
# Todo: this has to be removed at the end of the ticket.
if sf_key == "regex_fields":
logger.warning(
"[Deprecated]: regex_fields are no longer necessary. "
Expand All @@ -359,15 +356,6 @@ def _get_filter_expression(

return self._special_fields_map[sf_key](key, value)

#Todo: this has to be removed at the end of the ticket.

# if hasattr(self._tree, 'expr') and isinstance(self._tree.expr, Regex):
# value = value.strip("/")
# return RegExFilterExpression(key, value)
# if value.startswith("/") and value.endswith("/"):
# value = value.strip("/")
# return RegExFilterExpression(key, value)

return StringFilterExpression(key, value)

def _get_filter_expression_regex(
Expand Down

0 comments on commit 8dfe644

Please sign in to comment.