Index: tools/git/move_source_file.py |
diff --git a/tools/git/move_source_file.py b/tools/git/move_source_file.py |
index 18ef1ce82721ce348948d57dccd85f63d5d9ff6c..1a25e4480a6ee3264199ced16169af7053ffe526 100755 |
--- a/tools/git/move_source_file.py |
+++ b/tools/git/move_source_file.py |
@@ -31,7 +31,6 @@ if __name__ == '__main__': |
# classpath. |
sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..'))) |
sort_headers = __import__('sort-headers') |
-import sort_sources |
HANDLED_EXTENSIONS = ['.cc', '.mm', '.h', '.hh', '.cpp'] |
@@ -143,13 +142,11 @@ def UpdatePostMove(from_path, to_path): |
from_rest = from_path |
to_rest = to_path |
while True: |
- files_with_changed_sources = mffr.MultiFileFindReplace( |
+ mffr.MultiFileFindReplace( |
r'([\'"])%s([\'"])' % from_rest, |
r'\1%s\2' % to_rest, |
[os.path.join(visiting_directory, 'BUILD.gn'), |
os.path.join(visiting_directory, '*.gyp*')]) |
- for changed_file in files_with_changed_sources: |
- sort_sources.ProcessFile(changed_file, should_confirm=False) |
from_first, from_rest = SplitByFirstComponent(from_rest) |
to_first, to_rest = SplitByFirstComponent(to_rest) |
visiting_directory = os.path.join(visiting_directory, from_first) |