[javascriptlint-commit] SF.net SVN: javascriptlint:[358] trunk/javascriptlint/lint.py
Status: Beta
Brought to you by:
matthiasmiller
|
From: <mat...@us...> - 2016-12-23 21:56:39
|
Revision: 358
http://sourceforge.net/p/javascriptlint/code/358
Author: matthiasmiller
Date: 2016-12-23 21:56:37 +0000 (Fri, 23 Dec 2016)
Log Message:
-----------
Remove unused code.
Modified Paths:
--------------
trunk/javascriptlint/lint.py
Modified: trunk/javascriptlint/lint.py
===================================================================
--- trunk/javascriptlint/lint.py 2016-12-23 21:29:43 UTC (rev 357)
+++ trunk/javascriptlint/lint.py 2016-12-23 21:56:37 UTC (rev 358)
@@ -15,12 +15,6 @@
from jsengine.parser import kind as tok
from jsengine.parser import op
-_newline_kinds = (
- 'eof', 'comma', 'dot', 'semi', 'colon', 'lc', 'rc', 'lp', 'rb', 'assign',
- 'relop', 'hook', 'plus', 'minus', 'star', 'divop', 'eqop', 'shop', 'or',
- 'and', 'bitor', 'bitxor', 'bitand', 'else', 'try'
-)
-
_globals = frozenset([
'Array', 'Boolean', 'Math', 'Number', 'String', 'RegExp', 'Script', 'Date',
'isNaN', 'isFinite', 'parseFloat', 'parseInt',
@@ -33,19 +27,6 @@
'arguments', 'undefined'
])
-def _find_function(node):
- while node and node.kind != tok.FUNCTION:
- node = node.parent
- return node
-
-def _find_functions(node):
- functions = []
- while node:
- if node.kind == tok.FUNCTION:
- functions.append(node)
- node = node.parent
- return functions
-
def _parse_control_comment(comment):
""" Returns None or (keyword, parms) """
comment_atom = comment.atom.strip()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|