Skip to content

Commit

Permalink
Issue #4817: Remove unused function PyOS_GetLastModificationTime.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.python.org/projects/python/trunk@68203 6015fed2-1504-0410-9fe1-9d1591cc4771
  • Loading branch information
martin.v.loewis committed Jan 3, 2009
1 parent fdb0e3f commit d68c4be
Show file tree
Hide file tree
Showing 17 changed files with 2 additions and 84 deletions.
7 changes: 0 additions & 7 deletions Doc/c-api/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ Operating System Utilities
one of the strings ``'<stdin>'`` or ``'???'``.


.. cfunction:: long PyOS_GetLastModificationTime(char *filename)

Return the time of last modification of the file *filename*. The result is
encoded in the same way as the timestamp returned by the standard C library
function :cfunc:`time`.


.. cfunction:: void PyOS_AfterFork()

Function to update some internal state after a process fork; this should be
Expand Down
3 changes: 0 additions & 3 deletions Doc/data/refcounts.dat
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,6 @@ PyNumber_Xor:PyObject*::+1:
PyNumber_Xor:PyObject*:o1:0:
PyNumber_Xor:PyObject*:o2:0:

PyOS_GetLastModificationTime:long:::
PyOS_GetLastModificationTime:char*:filename::

PyObject_AsFileDescriptor:int:::
PyObject_AsFileDescriptor:PyObject*:o:0:

Expand Down
1 change: 0 additions & 1 deletion Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ PYTHON_OBJS= \
Python/getargs.o \
Python/getcompiler.o \
Python/getcopyright.o \
Python/getmtime.o \
Python/getplatform.o \
Python/getversion.o \
Python/graminit.o \
Expand Down
2 changes: 2 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ What's New in Python 2.7 alpha 1
Core and Builtins
-----------------

- Issue #4817: Remove unused function PyOS_GetLastModificationTime.

- Issue #4075: Use OutputDebugStringW in Py_FatalError.

- Issue #4797: IOError.filename was not set when _fileio.FileIO failed to open
Expand Down
4 changes: 0 additions & 4 deletions PC/VC6/pythoncore.dsp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions PC/VS7.1/pythoncore.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,6 @@
<File
RelativePath="..\..\Python\getcopyright.c">
</File>
<File
RelativePath="..\..\Python\getmtime.c">
</File>
<File
RelativePath="..\..\Python\getopt.c">
</File>
Expand Down
4 changes: 0 additions & 4 deletions PC/VS8.0/pythoncore.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -1686,10 +1686,6 @@
RelativePath="..\..\Python\getcopyright.c"
>
</File>
<File
RelativePath="..\..\Python\getmtime.c"
>
</File>
<File
RelativePath="..\..\Python\getopt.c"
>
Expand Down
1 change: 0 additions & 1 deletion PC/os2emx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ SRC.PYTHON= $(addprefix $(TOP), \
Python/getargs.c \
Python/getcompiler.c \
Python/getcopyright.c \
Python/getmtime.c \
Python/getplatform.c \
Python/getversion.c \
Python/graminit.c \
Expand Down
3 changes: 0 additions & 3 deletions PC/os2emx/python27.def
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,6 @@ EXPORTS
; From python27_s.lib(getcopyright)
"Py_GetCopyright"

; From python27_s.lib(getmtime)
"PyOS_GetLastModificationTime"

; From python27_s.lib(getplatform)
"Py_GetPlatform"

Expand Down
2 changes: 0 additions & 2 deletions PC/os2vacpp/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1693,8 +1693,6 @@ getcopyright.obj: $(PY_INCLUDE)\abstract.h $(PY_INCLUDE)\ceval.h \
$(PY_INCLUDE)\stringobject.h $(PY_INCLUDE)\sysmodule.h $(PY_INCLUDE)\traceback.h \
$(PY_INCLUDE)\tupleobject.h

getmtime.obj: pyconfig.h

getplatform.obj: $(PY_INCLUDE)\abstract.h $(PY_INCLUDE)\ceval.h \
$(PY_INCLUDE)\classobject.h $(PY_INCLUDE)\cobject.h $(PY_INCLUDE)\complexobject.h \
pyconfig.h $(PY_INCLUDE)\dictobject.h $(PY_INCLUDE)\fileobject.h \
Expand Down
2 changes: 0 additions & 2 deletions PC/os2vacpp/makefile.omk
Original file line number Diff line number Diff line change
Expand Up @@ -1155,8 +1155,6 @@ getcopyright.obj: abstract.h ceval.h classobject.h cobject.h \
pystate.h python.h pythonrun.h rangeobject.h sliceobject.h \
stringobject.h sysmodule.h traceback.h tupleobject.h

getmtime.obj: pyconfig.h

getplatform.obj: abstract.h ceval.h classobject.h cobject.h complexobject.h \
pyconfig.h dictobject.h fileobject.h floatobject.h funcobject.h \
import.h intobject.h intrcheck.h listobject.h longobject.h \
Expand Down
1 change: 0 additions & 1 deletion PC/os2vacpp/python.def
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ EXPORTS
PyNumber_Xor
PyOS_AfterFork
PyOS_FiniInterrupts
PyOS_GetLastModificationTime
PyOS_InitInterrupts
PyOS_InterruptOccurred
PyOS_Readline
Expand Down
4 changes: 0 additions & 4 deletions PCbuild/pythoncore.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -1686,10 +1686,6 @@
RelativePath="..\Python\getcopyright.c"
>
</File>
<File
RelativePath="..\Python\getmtime.c"
>
</File>
<File
RelativePath="..\Python\getopt.c"
>
Expand Down
26 changes: 0 additions & 26 deletions Python/getmtime.c

This file was deleted.

2 changes: 0 additions & 2 deletions Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ extern "C" {
typedef unsigned short mode_t;
#endif

extern time_t PyOS_GetLastModificationTime(char *, FILE *);
/* In getmtime.c */

/* Magic word to reject .pyc files generated by other Python versions.
It should change for each incompatible change to the bytecode.
Expand Down
1 change: 0 additions & 1 deletion RISCOS/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ OBJECTS_PYTHON =\
OBJECTS_RISCOS = \
@.Python.o.dynload_riscos\
@.Python.o.getcwd_riscos\
@.Python.o.getmtime_riscos\
@.o.unixstuff


Expand Down
20 changes: 0 additions & 20 deletions RISCOS/Python/getmtime_riscos.c

This file was deleted.

0 comments on commit d68c4be

Please sign in to comment.