summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-17 22:54:21 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-17 22:54:21 (GMT)
commit6b06da5395907e0e4df84b98d01f1e8b122591aa (patch)
treeaa4812273345125946c2e6df0905d70b0cdf8277
parent0e5a41b8f5b87bf07ed6368df5a84137d3e4e4da (diff)
downloadcpython-6b06da5395907e0e4df84b98d01f1e8b122591aa.zip
cpython-6b06da5395907e0e4df84b98d01f1e8b122591aa.tar.gz
cpython-6b06da5395907e0e4df84b98d01f1e8b122591aa.tar.bz2
Remove unused functions _PyImport_FindModule and _PyImport_IsScript
-rw-r--r--Include/import.h3
-rw-r--r--Python/import.c16
2 files changed, 0 insertions, 19 deletions
diff --git a/Include/import.h b/Include/import.h
index 923fbca..3311581 100644
--- a/Include/import.h
+++ b/Include/import.h
@@ -38,9 +38,6 @@ PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
#define _PyImport_ReleaseLock() 1
#endif
-PyAPI_FUNC(struct filedescr *) _PyImport_FindModule(
- const char *, PyObject *, char *, size_t, FILE **, PyObject **);
-PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr *);
PyAPI_FUNC(void) _PyImport_ReInitLock(void);
PyAPI_FUNC(PyObject *)_PyImport_FindExtension(char *, char *);
diff --git a/Python/import.c b/Python/import.c
index bb3756e..a5277af 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1790,22 +1790,6 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
return fdp;
}
-/* Helpers for main.c
- * Find the source file corresponding to a named module
- */
-struct filedescr *
-_PyImport_FindModule(const char *name, PyObject *path, char *buf,
- size_t buflen, FILE **p_fp, PyObject **p_loader)
-{
- return find_module((char *) name, (char *) name, path,
- buf, buflen, p_fp, p_loader);
-}
-
-PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr * fd)
-{
- return fd->type == PY_SOURCE || fd->type == PY_COMPILED;
-}
-
/* case_ok(char* buf, Py_ssize_t len, Py_ssize_t namelen, char* name)
* The arguments here are tricky, best shown by example:
* /a/b/c/d/e/f/g/h/i/j/k/some_long_module_name.py\0