mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
docs: remove some dead code in apibuild.py
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
c41929603a
commit
55cbe0fb5c
@ -553,17 +553,10 @@ class CLexer:
|
|||||||
self.tokens.append(('name', line[s:i]))
|
self.tokens.append(('name', line[s:i]))
|
||||||
continue
|
continue
|
||||||
if line[i] in "(){}:;,[]":
|
if line[i] in "(){}:;,[]":
|
||||||
# if line[i] == '(' or line[i] == ')' or line[i] == '{' or \
|
|
||||||
# line[i] == '}' or line[i] == ':' or line[i] == ';' or \
|
|
||||||
# line[i] == ',' or line[i] == '[' or line[i] == ']':
|
|
||||||
self.tokens.append(('sep', line[i]))
|
self.tokens.append(('sep', line[i]))
|
||||||
i = i + 1
|
i = i + 1
|
||||||
continue
|
continue
|
||||||
if line[i] in "+-*><=/%&!|.":
|
if line[i] in "+-*><=/%&!|.":
|
||||||
# if line[i] == '+' or line[i] == '-' or line[i] == '*' or \
|
|
||||||
# line[i] == '>' or line[i] == '<' or line[i] == '=' or \
|
|
||||||
# line[i] == '/' or line[i] == '%' or line[i] == '&' or \
|
|
||||||
# line[i] == '!' or line[i] == '|' or line[i] == '.':
|
|
||||||
if line[i] == '.' and i + 2 < l and \
|
if line[i] == '.' and i + 2 < l and \
|
||||||
line[i+1] == '.' and line[i+2] == '.':
|
line[i+1] == '.' and line[i+2] == '.':
|
||||||
self.tokens.append(('name', '...'))
|
self.tokens.append(('name', '...'))
|
||||||
@ -572,10 +565,6 @@ class CLexer:
|
|||||||
|
|
||||||
j = i + 1
|
j = i + 1
|
||||||
if j < l and line[j] in "+-*><=/%&!|":
|
if j < l and line[j] in "+-*><=/%&!|":
|
||||||
# line[j] == '+' or line[j] == '-' or line[j] == '*' or \
|
|
||||||
# line[j] == '>' or line[j] == '<' or line[j] == '=' or \
|
|
||||||
# line[j] == '/' or line[j] == '%' or line[j] == '&' or \
|
|
||||||
# line[j] == '!' or line[j] == '|'):
|
|
||||||
self.tokens.append(('op', line[i:j+1]))
|
self.tokens.append(('op', line[i:j+1]))
|
||||||
i = j + 1
|
i = j + 1
|
||||||
else:
|
else:
|
||||||
@ -585,18 +574,6 @@ class CLexer:
|
|||||||
s = i
|
s = i
|
||||||
while i < l:
|
while i < l:
|
||||||
if line[i] not in " \t(){}:;,+-*/%&!|[]=><":
|
if line[i] not in " \t(){}:;,+-*/%&!|[]=><":
|
||||||
# line[i] != ' ' and line[i] != '\t' and
|
|
||||||
# line[i] != '(' and line[i] != ')' and
|
|
||||||
# line[i] != '{' and line[i] != '}' and
|
|
||||||
# line[i] != ':' and line[i] != ';' and
|
|
||||||
# line[i] != ',' and line[i] != '+' and
|
|
||||||
# line[i] != '-' and line[i] != '*' and
|
|
||||||
# line[i] != '/' and line[i] != '%' and
|
|
||||||
# line[i] != '&' and line[i] != '!' and
|
|
||||||
# line[i] != '|' and line[i] != '[' and
|
|
||||||
# line[i] != ']' and line[i] != '=' and
|
|
||||||
# line[i] != '*' and line[i] != '>' and
|
|
||||||
# line[i] != '<'):
|
|
||||||
i = i + 1
|
i = i + 1
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user