Skip to content

Commit

Permalink
chore: remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim committed Mar 16, 2024
1 parent d9d7c0f commit 0ea2e0f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions pycx2/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@

import subprocess
import sys

from compile import compile as compile_

def parse_args():
"""
Parse command-line arguments.
Returns:
tuple: A tuple containing the source file path and remaining command-line arguments.
"""
if len(sys.argv) < 2:
RED = "\033[91m"
Expand All @@ -52,9 +48,6 @@ def compile():
def compile_and_run():
"""
Compile and run the specified source file.
Returns:
int: The return code from the compilation and execution process.
"""
source_file, argv = parse_args()
return_code, executable = compile_(source_file)
Expand Down
7 changes: 0 additions & 7 deletions pycx2/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
def compile(source_file, verbose=False):
"""
Compile Python2 source file to executable using Cython.
Args:
source_file (str): Path to the Python source file.
verbose (bool): If True, print detailed compilation information.
Returns:
tuple: A tuple containing the return code from the compilation process and the executable path.
"""
basename = os.path.splitext(source_file)[0]
c_file = basename + ".c"
Expand Down

0 comments on commit 0ea2e0f

Please sign in to comment.