Skip to content

Commit

Permalink
feat(generator:libclang.py): Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Nov 10, 2019
1 parent 3317f32 commit 64e1692
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions generators/libclang.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,6 @@

func = {}


def get_diag_info(diag, line):
return {
'severity': diag.severity,
'location': diag.location,
'spelling': diag.spelling,
'ranges': diag.ranges,
'fixits': diag.fixits
}


def get_token(node, key):
try:
token = next(node.get_tokens())
Expand Down Expand Up @@ -88,7 +77,6 @@ def main():
index = Index.create()
tu = index.parse(filename)
if tu:

find_func(tu.cursor, line)
if len(func.keys()) > 0:
print(json.dumps(func))
Expand Down

0 comments on commit 64e1692

Please sign in to comment.