diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-17 07:35:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-17 07:35:41 +0300 |
commit | 812f23849422e50b2834434c11072de8eb8bda7e (patch) | |
tree | 0e37eff619a90abee07fcde5d3feb7eacf475f5f /build_files | |
parent | f7295ad6d9653d31ce7aea2327c26aba893eb02c (diff) |
pep8 cleanup and remove unused vars/imports
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/cmake_consistency_check.py | 5 | ||||
-rw-r--r-- | build_files/cmake/cmake_qtcreator_project.py | 5 |
2 files changed, 1 insertions, 9 deletions
diff --git a/build_files/cmake/cmake_consistency_check.py b/build_files/cmake/cmake_consistency_check.py index ec82d1b3b23..f55b2e95d5e 100644 --- a/build_files/cmake/cmake_consistency_check.py +++ b/build_files/cmake/cmake_consistency_check.py @@ -34,7 +34,7 @@ IGNORE = \ "/ik_glut_test/" import os -from os.path import join, dirname, normpath, abspath +from os.path import join, dirname, normpath, abspath, splitext base = join(os.path.dirname(__file__), "..", "..") base = normpath(base) @@ -45,9 +45,6 @@ print("Scanning:", base) global_h = set() global_c = set() -import os -from os.path import splitext - def source_list(path, filename_check=None): for dirpath, dirnames, filenames in os.walk(path): diff --git a/build_files/cmake/cmake_qtcreator_project.py b/build_files/cmake/cmake_qtcreator_project.py index 3adce66fade..ca214338298 100644 --- a/build_files/cmake/cmake_qtcreator_project.py +++ b/build_files/cmake/cmake_qtcreator_project.py @@ -45,11 +45,6 @@ def source_list(path, filename_check=None): # extension checking -def is_c_header(filename): - ext = splitext(filename)[1] - return (ext in (".h", ".hpp", ".hxx")) - - def is_cmake(filename): ext = splitext(filename)[1] return (ext == ".cmake") or (filename == "CMakeLists.txt") |