Skip to content

Commit d68c4be

Browse files
author
martin.v.loewis
committed
Issue #4817: Remove unused function PyOS_GetLastModificationTime.
git-svn-id: http://svn.python.org/projects/python/trunk@68203 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent fdb0e3f commit d68c4be

17 files changed

+2
-84
lines changed

Doc/c-api/sys.rst

-7
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ Operating System Utilities
1515
one of the strings ``'<stdin>'`` or ``'???'``.
1616

1717

18-
.. cfunction:: long PyOS_GetLastModificationTime(char *filename)
19-
20-
Return the time of last modification of the file *filename*. The result is
21-
encoded in the same way as the timestamp returned by the standard C library
22-
function :cfunc:`time`.
23-
24-
2518
.. cfunction:: void PyOS_AfterFork()
2619

2720
Function to update some internal state after a process fork; this should be

Doc/data/refcounts.dat

-3
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,6 @@ PyNumber_Xor:PyObject*::+1:
841841
PyNumber_Xor:PyObject*:o1:0:
842842
PyNumber_Xor:PyObject*:o2:0:
843843

844-
PyOS_GetLastModificationTime:long:::
845-
PyOS_GetLastModificationTime:char*:filename::
846-
847844
PyObject_AsFileDescriptor:int:::
848845
PyObject_AsFileDescriptor:PyObject*:o:0:
849846

Makefile.pre.in

-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ PYTHON_OBJS= \
264264
Python/getargs.o \
265265
Python/getcompiler.o \
266266
Python/getcopyright.o \
267-
Python/getmtime.o \
268267
Python/getplatform.o \
269268
Python/getversion.o \
270269
Python/graminit.o \

Misc/NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ What's New in Python 2.7 alpha 1
1212
Core and Builtins
1313
-----------------
1414

15+
- Issue #4817: Remove unused function PyOS_GetLastModificationTime.
16+
1517
- Issue #4075: Use OutputDebugStringW in Py_FatalError.
1618

1719
- Issue #4797: IOError.filename was not set when _fileio.FileIO failed to open

PC/VC6/pythoncore.dsp

-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PC/VS7.1/pythoncore.vcproj

-3
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,6 @@
568568
<File
569569
RelativePath="..\..\Python\getcopyright.c">
570570
</File>
571-
<File
572-
RelativePath="..\..\Python\getmtime.c">
573-
</File>
574571
<File
575572
RelativePath="..\..\Python\getopt.c">
576573
</File>

PC/VS8.0/pythoncore.vcproj

-4
Original file line numberDiff line numberDiff line change
@@ -1686,10 +1686,6 @@
16861686
RelativePath="..\..\Python\getcopyright.c"
16871687
>
16881688
</File>
1689-
<File
1690-
RelativePath="..\..\Python\getmtime.c"
1691-
>
1692-
</File>
16931689
<File
16941690
RelativePath="..\..\Python\getopt.c"
16951691
>

PC/os2emx/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ SRC.PYTHON= $(addprefix $(TOP), \
351351
Python/getargs.c \
352352
Python/getcompiler.c \
353353
Python/getcopyright.c \
354-
Python/getmtime.c \
355354
Python/getplatform.c \
356355
Python/getversion.c \
357356
Python/graminit.c \

PC/os2emx/python27.def

-3
Original file line numberDiff line numberDiff line change
@@ -931,9 +931,6 @@ EXPORTS
931931
; From python27_s.lib(getcopyright)
932932
"Py_GetCopyright"
933933

934-
; From python27_s.lib(getmtime)
935-
"PyOS_GetLastModificationTime"
936-
937934
; From python27_s.lib(getplatform)
938935
"Py_GetPlatform"
939936

PC/os2vacpp/makefile

-2
Original file line numberDiff line numberDiff line change
@@ -1693,8 +1693,6 @@ getcopyright.obj: $(PY_INCLUDE)\abstract.h $(PY_INCLUDE)\ceval.h \
16931693
$(PY_INCLUDE)\stringobject.h $(PY_INCLUDE)\sysmodule.h $(PY_INCLUDE)\traceback.h \
16941694
$(PY_INCLUDE)\tupleobject.h
16951695

1696-
getmtime.obj: pyconfig.h
1697-
16981696
getplatform.obj: $(PY_INCLUDE)\abstract.h $(PY_INCLUDE)\ceval.h \
16991697
$(PY_INCLUDE)\classobject.h $(PY_INCLUDE)\cobject.h $(PY_INCLUDE)\complexobject.h \
17001698
pyconfig.h $(PY_INCLUDE)\dictobject.h $(PY_INCLUDE)\fileobject.h \

PC/os2vacpp/makefile.omk

-2
Original file line numberDiff line numberDiff line change
@@ -1155,8 +1155,6 @@ getcopyright.obj: abstract.h ceval.h classobject.h cobject.h \
11551155
pystate.h python.h pythonrun.h rangeobject.h sliceobject.h \
11561156
stringobject.h sysmodule.h traceback.h tupleobject.h
11571157

1158-
getmtime.obj: pyconfig.h
1159-
11601158
getplatform.obj: abstract.h ceval.h classobject.h cobject.h complexobject.h \
11611159
pyconfig.h dictobject.h fileobject.h floatobject.h funcobject.h \
11621160
import.h intobject.h intrcheck.h listobject.h longobject.h \

PC/os2vacpp/python.def

-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ EXPORTS
284284
PyNumber_Xor
285285
PyOS_AfterFork
286286
PyOS_FiniInterrupts
287-
PyOS_GetLastModificationTime
288287
PyOS_InitInterrupts
289288
PyOS_InterruptOccurred
290289
PyOS_Readline

PCbuild/pythoncore.vcproj

-4
Original file line numberDiff line numberDiff line change
@@ -1686,10 +1686,6 @@
16861686
RelativePath="..\Python\getcopyright.c"
16871687
>
16881688
</File>
1689-
<File
1690-
RelativePath="..\Python\getmtime.c"
1691-
>
1692-
</File>
16931689
<File
16941690
RelativePath="..\Python\getopt.c"
16951691
>

Python/getmtime.c

-26
This file was deleted.

Python/import.c

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ extern "C" {
2727
typedef unsigned short mode_t;
2828
#endif
2929

30-
extern time_t PyOS_GetLastModificationTime(char *, FILE *);
31-
/* In getmtime.c */
3230

3331
/* Magic word to reject .pyc files generated by other Python versions.
3432
It should change for each incompatible change to the bytecode.

RISCOS/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ OBJECTS_PYTHON =\
135135
OBJECTS_RISCOS = \
136136
@.Python.o.dynload_riscos\
137137
@.Python.o.getcwd_riscos\
138-
@.Python.o.getmtime_riscos\
139138
@.o.unixstuff
140139

141140

RISCOS/Python/getmtime_riscos.c

-20
This file was deleted.

0 commit comments

Comments
 (0)