]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused functions _PyImport_FindModule and _PyImport_IsScript
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 17 Aug 2010 22:54:21 +0000 (22:54 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 17 Aug 2010 22:54:21 +0000 (22:54 +0000)
Include/import.h
Python/import.c

index 923fbca4d8c81b33d52b406fd22a79c8243511b4..331158144641d91ebc3a02fe7e5a97107d6e5282 100644 (file)
@@ -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 *);
index bb3756ef81e0b9036ea94dfdbc968bdf9130319f..a5277af938221e6347518853647aaf561729fe71 100644 (file)
@@ -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