summaryrefslogtreecommitdiffstats
path: root/RISCOS
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-01-03 17:19:26 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2009-01-03 17:19:26 (GMT)
commit0fa10b3cd5de4090b86c8f88c5f30d2e6a9686ac (patch)
tree892dd474e799e78aed75a21695e41d3754376be8 /RISCOS
parent37fc82348c4956ea543475ef755d63dfff04dbf4 (diff)
downloadcpython-0fa10b3cd5de4090b86c8f88c5f30d2e6a9686ac.zip
cpython-0fa10b3cd5de4090b86c8f88c5f30d2e6a9686ac.tar.gz
cpython-0fa10b3cd5de4090b86c8f88c5f30d2e6a9686ac.tar.bz2
Issue #4817: Remove unused function PyOS_GetLastModificationTime.
Diffstat (limited to 'RISCOS')
-rw-r--r--RISCOS/Makefile1
-rw-r--r--RISCOS/Python/getmtime_riscos.c20
2 files changed, 0 insertions, 21 deletions
diff --git a/RISCOS/Makefile b/RISCOS/Makefile
index 1788b5c..bd63e38 100644
--- a/RISCOS/Makefile
+++ b/RISCOS/Makefile
@@ -135,7 +135,6 @@ OBJECTS_PYTHON =\
OBJECTS_RISCOS = \
@.Python.o.dynload_riscos\
@.Python.o.getcwd_riscos\
- @.Python.o.getmtime_riscos\
@.o.unixstuff
diff --git a/RISCOS/Python/getmtime_riscos.c b/RISCOS/Python/getmtime_riscos.c
deleted file mode 100644
index 9153638..0000000
--- a/RISCOS/Python/getmtime_riscos.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <stdio.h>
-
-#define __swi
-#include "oslib/osfile.h"
-
-long PyOS_GetLastModificationTime(char *path, FILE *fp)
-{
- int obj;
- bits load, exec, ftype;
-
- if (xosfile_read_stamped_no_path(path, &obj, &load, &exec, 0, 0, &ftype)) return -1;
- if (obj != osfile_IS_FILE) return -1;
- if (ftype == osfile_TYPE_UNTYPED) return -1;
-
- load &= 0xFF;
- load -= 51;
- if (exec < 1855548004U) load--;
- exec -= 1855548004U;
- return exec/100+42949672*load+(95*load)/100;
-}