Module: Mesa
Branch: main
Commit: e988b1975bef9b36d5f82316db452f4d0f75b042
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e988b1975bef9b36d5f82316db452f4d0f75b042

Author: Eric Engestrom <[email protected]>
Date:   Sun Aug  7 18:51:50 2022 +0100

vk/update-aliases.py: drop dead --check-only

This was introduced for when it was intended for this script to run as
part of the build tests, but that was dropped, and so should this.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26484>

---

 src/vulkan/registry/update-aliases.py | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/src/vulkan/registry/update-aliases.py 
b/src/vulkan/registry/update-aliases.py
index 382893dd9e0..77071bcd8dd 100755
--- a/src/vulkan/registry/update-aliases.py
+++ b/src/vulkan/registry/update-aliases.py
@@ -56,10 +56,9 @@ def chunks(lst: list, n: int):
         yield lst[i:i + n]
 
 
-def main(check_only: bool):
+def main():
     """
-    Entrypoint; perform the search for all the aliases, and if `check_only`
-    is not True, replace them.
+    Entrypoint; perform the search for all the aliases and replace them.
     """
     def prepare_identifier(identifier: str) -> str:
         # vk_find_struct() prepends `VK_STRUCTURE_TYPE_`, so that prefix
@@ -117,11 +116,6 @@ def main(check_only: bool):
     print(f'{len(files_with_aliases)} files contain aliases:')
     print('\n'.join(f'- {file}' for file in files_with_aliases))
 
-    if check_only:
-        print('You can automatically fix this by running '
-              f'`{THIS_FILE.relative_to(CWD)}`.')
-        sys.exit(1)
-
     command = [
         'sed',
         '-i',
@@ -134,8 +128,5 @@ def main(check_only: bool):
 
 if __name__ == '__main__':
     parser = argparse.ArgumentParser()
-    parser.add_argument('--check-only',
-                        action='store_true',
-                        help='Replace aliases found')
     args = parser.parse_args()
     main(**vars(args))

Reply via email to