diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-08-26 13:39:57 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-09-11 20:14:52 +0200 |
| commit | 044322b4dca1135671a93ebfe1601214f7f6e655 (patch) | |
| tree | 6b9ba04f4aab7f24bfead1da769aa6707140975c /python/depcache.cc | |
| parent | 14086582c87c4297fd14bd3c3831afd3cd1d2833 (diff) | |
| download | python-apt-044322b4dca1135671a93ebfe1601214f7f6e655.tar.gz | |
Remove old API compatibility C++ support code
Diffstat (limited to 'python/depcache.cc')
| -rw-r--r-- | python/depcache.cc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/python/depcache.cc b/python/depcache.cc index 73993c82..acd41a85 100644 --- a/python/depcache.cc +++ b/python/depcache.cc @@ -794,14 +794,6 @@ PyTypeObject PyDepCache_Type = PkgDepCacheNew, // tp_new }; -#ifdef COMPAT_0_7 -PyObject *GetDepCache(PyObject *Self,PyObject *Args) -{ - PyErr_WarnEx(PyExc_DeprecationWarning,"apt_pkg.GetDepCache() is deprecated" - ". Please see apt_pkg.DepCache() for the replacement.",1); - return PkgDepCacheNew(&PyDepCache_Type,Args,0); -} -#endif @@ -829,14 +821,6 @@ static PyObject *PkgProblemResolverNew(PyTypeObject *type,PyObject *Args,PyObjec return PkgProblemResolverPyObj; } -#ifdef COMPAT_0_7 -PyObject *GetPkgProblemResolver(PyObject *Self,PyObject *Args) { - PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.GetPkgProblemResolver() is" - " deprecated. Please see apt_pkg.ProblemResolver() for the " - "replacement.", 1); - return PkgProblemResolverNew(&PyProblemResolver_Type,Args,0); -} -#endif static PyObject *PkgProblemResolverResolve(PyObject *Self,PyObject *Args) { @@ -1121,15 +1105,6 @@ PyTypeObject PyActionGroup_Type = PkgActionGroupNew, // tp_new }; -#ifdef COMPAT_0_7 -PyObject *GetPkgActionGroup(PyObject *Self,PyObject *Args) -{ - PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.GetPkgActionGroup() is " - "deprecated. Please see apt_pkg.ActionGroup() for the " - "replacement.", 1); - return PkgActionGroupNew(&PyActionGroup_Type,Args,0); -} -#endif /*}}}*/ |
