Skip to content

Commit

Permalink
remove unused code in mpir_config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianGladman committed Jan 16, 2021
1 parent fc9bf66 commit 800bbce
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions msvc/mpir_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def write_f(ipath, opath):
if exists(ipath) and not isdir(ipath):
if exists(opath) and isfile(opath) and cmp(ipath, opath):
return
dp , f = split(opath)
dp, f = split(opath)
try:
mkdir(dp)
except FileExistsError:
Expand Down Expand Up @@ -75,17 +75,6 @@ def write_f(ipath, opath):
'gmp-mparam', 'tal-debug', 'tal-notreent', 'new_fft',
'new_fft_with_flint', 'compat', 'udiv_w_sdiv')

# copy from file ipath to file opath but avoid copying if
# opath exists and is the same as ipath (this is to avoid
# triggering an unecessary rebuild).

def write_f(ipath, opath):
if exists(ipath) and not isdir(ipath):
if exists(opath):
if isdir(opath) or cmp(ipath, opath):
return
copy(ipath, opath)

# append a file (ipath) to an existing file (opath)

def append_f(ipath, opath):
Expand Down

0 comments on commit 800bbce

Please sign in to comment.