Skip to content

Commit

Permalink
Updates to temporary fix literals in test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
DC3-DCCI authored and DC3-DCCI committed Mar 31, 2022
1 parent d00af4a commit 46eb4b9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 195 deletions.
18 changes: 0 additions & 18 deletions sqlite_dissect/file/schema/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def get_index_of_closing_parenthesis(string, opening_parenthesis_offset=0):
closing_parenthesis_offset = opening_parenthesis_offset
embedded_parentheses = 0
comment_indicator = 0
literal_indicator = 0

for index, character in enumerate(string[opening_parenthesis_offset + 1:], opening_parenthesis_offset + 1):

Expand All @@ -75,14 +74,6 @@ def get_index_of_closing_parenthesis(string, opening_parenthesis_offset=0):
(comment_indicator == 2 and character == '/' and string[index - 1] == '*'):
comment_indicator = 0

if literal_indicator:
if literal_indicator == 1 and character == '\'':
literal_indicator = 0
elif literal_indicator == 2 and character == '\"':
literal_indicator = 0
elif literal_indicator == 3 and character == '`':
literal_indicator = 0

else:

if character == "(":
Expand Down Expand Up @@ -126,15 +117,6 @@ def get_index_of_closing_parenthesis(string, opening_parenthesis_offset=0):
# Set the comment indicator
comment_indicator = 2

elif character == "\'":
literal_indicator = 1

elif character == "\"":
literal_indicator = 2

elif character == "`":
literal_indicator = 3

# Check to make sure the closing parenthesis was found
if closing_parenthesis_offset == len(string) - 1 and string[closing_parenthesis_offset] != ")":
log_message = "The closing parenthesis was not found in {} with opening parenthesis offset: {}."
Expand Down
100 changes: 0 additions & 100 deletions sqlite_dissect/tests/file_handle_test.py

This file was deleted.

77 changes: 0 additions & 77 deletions sqlite_dissect/tests/test_headers.py

This file was deleted.

0 comments on commit 46eb4b9

Please sign in to comment.