From 9d801afd861bb0872ad8276f4e2f71a346adc46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 3 Jan 2009 17:19:26 +0000 Subject: Issue #4817: Remove unused function PyOS_GetLastModificationTime. --- RISCOS/Makefile | 1 - RISCOS/Python/getmtime_riscos.c | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100644 RISCOS/Python/getmtime_riscos.c (limited to 'RISCOS') diff --git a/RISCOS/Makefile b/RISCOS/Makefile index 1788b5c97c..bd63e38337 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 9153638ffe..0000000000 --- a/RISCOS/Python/getmtime_riscos.c +++ /dev/null @@ -1,20 +0,0 @@ -#include - -#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; -} -- cgit v1.2.1