BIND 10 trac1252, updated. 64ba30803ae7a87f1c6bc21eb1a45c413fb6ce43 [1252] remove dead code
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Oct 7 13:22:18 UTC 2011
The branch, trac1252 has been updated
via 64ba30803ae7a87f1c6bc21eb1a45c413fb6ce43 (commit)
from 6588fc2759e5901f61327f170bb9ce0ec3d0bfcd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 64ba30803ae7a87f1c6bc21eb1a45c413fb6ce43
Author: Jelte Jansen <jelte at isc.org>
Date: Fri Oct 7 15:22:10 2011 +0200
[1252] remove dead code
-----------------------------------------------------------------------
Summary of changes:
src/lib/python/isc/datasrc/updater_python.cc | 45 --------------------------
1 files changed, 0 insertions(+), 45 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/datasrc/updater_python.cc b/src/lib/python/isc/datasrc/updater_python.cc
index a9dc581..ed45a42 100644
--- a/src/lib/python/isc/datasrc/updater_python.cc
+++ b/src/lib/python/isc/datasrc/updater_python.cc
@@ -176,51 +176,6 @@ ZoneUpdater_find(PyObject* po_self, PyObject* args) {
args));
}
-PyObject*
-AZoneUpdater_find(PyObject* po_self, PyObject* args) {
- s_ZoneUpdater* const self = static_cast<s_ZoneUpdater*>(po_self);
- PyObject *name;
- PyObject *rrtype;
- PyObject *target;
- int options_int;
- if (PyArg_ParseTuple(args, "O!O!OI", &name_type, &name,
- &rrtype_type, &rrtype,
- &target, &options_int)) {
- try {
- ZoneFinder::FindOptions options =
- static_cast<ZoneFinder::FindOptions>(options_int);
- ZoneFinder::FindResult find_result(
- self->cppobj->getFinder().find(PyName_ToName(name),
- PyRRType_ToRRType(rrtype),
- NULL,
- options
- ));
- ZoneFinder::Result r = find_result.code;
- isc::dns::ConstRRsetPtr rrsp = find_result.rrset;
- if (rrsp) {
- // Use N instead of O so the refcount isn't increased twice
- return Py_BuildValue("IN", r, createRRsetObject(*rrsp));
- } else {
- return Py_BuildValue("IO", r, Py_None);
- }
- } catch (const DataSourceError& dse) {
- PyErr_SetString(getDataSourceException("Error"), dse.what());
- return (NULL);
- } catch (const std::exception& exc) {
- PyErr_SetString(getDataSourceException("Error"), exc.what());
- return (NULL);
- } catch (...) {
- PyErr_SetString(getDataSourceException("Error"),
- "Unexpected exception");
- return (NULL);
- }
- } else {
- return (NULL);
- }
- return Py_BuildValue("I", 1);
-}
-
-
// This list contains the actual set of functions we have in
// python. Each entry has
// 1. Python method name
More information about the bind10-changes
mailing list