Skip to content

Conversation

ldionne
Copy link
Member

@ldionne ldionne commented Sep 9, 2025

There are no references to it anymore in the codebase.

There are no references to it anymore in the codebase.
@ldionne ldionne requested a review from a team as a code owner September 9, 2025 20:42
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Sep 9, 2025
@ldionne ldionne added the pending-ci Merging the PR is only pending completion of CI label Sep 9, 2025
@llvmbot
Copy link
Member

llvmbot commented Sep 9, 2025

@llvm/pr-subscribers-libcxx

Author: Louis Dionne (ldionne)

Changes

There are no references to it anymore in the codebase.


Full diff: https://github.com/llvm/llvm-project/pull/157744.diff

1 Files Affected:

  • (removed) libcxx/utils/cat_files.py (-51)
diff --git a/libcxx/utils/cat_files.py b/libcxx/utils/cat_files.py
deleted file mode 100755
index 77127cb98c8a8..0000000000000
--- a/libcxx/utils/cat_files.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env python
-# ===----------------------------------------------------------------------===##
-#
-# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-# See https://llvm.org/LICENSE.txt for license information.
-# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-#
-# ===----------------------------------------------------------------------===##
-
-from argparse import ArgumentParser
-import sys
-
-
-def print_and_exit(msg):
-    sys.stderr.write(msg + "\n")
-    sys.exit(1)
-
-
-def main():
-    parser = ArgumentParser(description="Concatenate two files into a single file")
-    parser.add_argument(
-        "-o",
-        "--output",
-        dest="output",
-        required=True,
-        help="The output file. stdout is used if not given",
-        type=str,
-        action="store",
-    )
-    parser.add_argument(
-        "files", metavar="files", nargs="+", help="The files to concatenate"
-    )
-
-    args = parser.parse_args()
-
-    if len(args.files) < 2:
-        print_and_exit("fewer than 2 inputs provided")
-    data = ""
-    for filename in args.files:
-        with open(filename, "r") as f:
-            data += f.read()
-        if len(data) != 0 and data[-1] != "\n":
-            data += "\n"
-    assert len(data) > 0 and "cannot cat empty files"
-    with open(args.output, "w") as f:
-        f.write(data)
-
-
-if __name__ == "__main__":
-    main()
-    sys.exit(0)

@frederick-vs-ja frederick-vs-ja merged commit e03fcce into llvm:main Sep 10, 2025
81 checks passed
@ldionne ldionne deleted the review/remove-unused-utility branch September 10, 2025 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. pending-ci Merging the PR is only pending completion of CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants