aboutsummaryrefslogtreecommitdiff
path: root/clint.py
diff options
context:
space:
mode:
authorJulian Orth <ju.orth@gmail.com>2014-03-05 21:39:52 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-27 14:03:35 -0300
commit67dbb1afda3284ef675f09566935228560cd0a69 (patch)
treeb7651673242beb75769d681bcc202f72daf40c45 /clint.py
parentccc3375d99f1d8bacef51ea3a8d45fe6e7584856 (diff)
downloadrneovim-67dbb1afda3284ef675f09566935228560cd0a69.tar.gz
rneovim-67dbb1afda3284ef675f09566935228560cd0a69.tar.bz2
rneovim-67dbb1afda3284ef675f09566935228560cd0a69.zip
remove some unused variables
Diffstat (limited to 'clint.py')
-rwxr-xr-xclint.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/clint.py b/clint.py
index 52529a6ad4..5468a006dc 100755
--- a/clint.py
+++ b/clint.py
@@ -3707,32 +3707,6 @@ def _GetTextInside(text, start_pattern):
return text[start_position:position - 1]
-# Patterns for matching call-by-reference parameters.
-#
-# Supports nested templates up to 2 levels deep using this messy pattern:
-# < (?: < (?: < [^<>]*
-# >
-# | [^<>] )*
-# >
-# | [^<>] )*
-# >
-_RE_PATTERN_IDENT = r'[_a-zA-Z]\w*' # =~ [[:alpha:]][[:alnum:]]*
-_RE_PATTERN_TYPE = (
- r'(?:const\s+)?(?:typename\s+|class\s+|struct\s+|union\s+|enum\s+)?'
- r'(?:\w|'
- r'\s*<(?:<(?:<[^<>]*>|[^<>])*>|[^<>])*>|'
- r'::)+')
-# A call-by-reference parameter ends with '& identifier'.
-_RE_PATTERN_REF_PARAM = re.compile(
- r'(' + _RE_PATTERN_TYPE + r'(?:\s*(?:\bconst\b|[*]))*\s*'
- r'&\s*' + _RE_PATTERN_IDENT + r')\s*(?:=[^,()]+)?[,)]')
-# A call-by-const-reference parameter either ends with 'const& identifier'
-# or looks like 'const type& identifier' when 'type' is atomic.
-_RE_PATTERN_CONST_REF_PARAM = (
- r'(?:.*\s*\bconst\s*&\s*' + _RE_PATTERN_IDENT +
- r'|const\s+' + _RE_PATTERN_TYPE + r'\s*&\s*' + _RE_PATTERN_IDENT + r')')
-
-
def CheckLanguage(filename, clean_lines, linenum, file_extension,
include_state, nesting_state, error):
"""Checks rules from the 'C++ language rules' section of cppguide.html.