Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
atardadi committed Jun 2, 2024
1 parent 5fd6a12 commit 496a783
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions dbt_command_center/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,6 @@
html_content = data_file.read()


def replace_between_delimiters(text, start_delim, end_delim, replacement):
parts = []
current_part = ""
in_delim = False
start_delim_len = len(start_delim)
end_delim_len = len(end_delim)

for i in range(len(text)):
char = str(text[i]) # Convert char to string
if not in_delim and text[i : i + start_delim_len] == start_delim:
in_delim = True
parts.append(current_part)
current_part = ""
i += start_delim_len - 1 # Skip the start delimiter
elif in_delim and text[i : i + end_delim_len] == end_delim:
in_delim = False
parts.append(replacement)
i += end_delim_len - 1 # Skip the end delimiter
current_part = ""
elif in_delim:
current_part += char
else:
current_part += char

parts.append(current_part)
return "".join(parts)


def is_analytics_disabled():
return os.environ.get(DISABLE_ANALYTICS, "false") == "true"

Expand Down

0 comments on commit 496a783

Please sign in to comment.