Browse Source

[1245] remove some unnecessary comments

Jelte Jansen 13 years ago
parent
commit
cbf08d5634

+ 0 - 5
src/lib/dns/python/message_python.h

@@ -23,11 +23,6 @@ namespace isc {
 namespace dns {
 namespace python {
 
-//
-// Declaration of the custom exceptions
-// Initialization and addition of these go in the module init at the
-// end
-//
 extern PyObject* po_MessageTooShort;
 extern PyObject* po_InvalidMessageSection;
 extern PyObject* po_InvalidMessageOperation;

+ 0 - 5
src/lib/dns/python/name_python.h

@@ -23,11 +23,6 @@ namespace isc {
 namespace dns {
 namespace python {
 
-//
-// Declaration of the custom exceptions
-// Initialization and addition of these go in the module init at the
-// end
-//
 extern PyObject* po_EmptyLabel;
 extern PyObject* po_TooLongName;
 extern PyObject* po_TooLongLabel;

+ 0 - 1
src/lib/dns/python/pydnspp.cc

@@ -21,7 +21,6 @@
 // name initModulePart_<name>, and return true/false instead of
 // NULL/*mod
 //
-// And of course care has to be taken that all identifiers be unique
 
 #define PY_SSIZE_T_CLEAN
 #include <Python.h>

+ 0 - 1
src/lib/dns/python/pydnspp_common.cc

@@ -41,7 +41,6 @@
 #include "question_python.h"
 #include "message_python.h"
 
-// order is important here!
 using namespace isc::dns::python;
 
 namespace isc {

+ 0 - 5
src/lib/dns/python/question_python.h

@@ -23,11 +23,6 @@ namespace isc {
 namespace dns {
 namespace python {
 
-//
-// Declaration of the custom exceptions
-// Initialization and addition of these go in the module init at the
-// end
-//
 extern PyObject* po_EmptyQuestion;
 
 extern PyTypeObject question_type;

+ 0 - 5
src/lib/dns/python/rdata_python.h

@@ -23,11 +23,6 @@ namespace isc {
 namespace dns {
 namespace python {
 
-//
-// Declaration of the custom exceptions
-// Initialization and addition of these go in the module init at the
-// end
-//
 extern PyObject* po_EmptyRdata;
 
 extern PyTypeObject rdata_type;

+ 0 - 5
src/lib/dns/python/rrset_python.h

@@ -25,11 +25,6 @@ namespace isc {
 namespace dns {
 namespace python {
 
-//
-// Declaration of the custom exceptions
-// Initialization and addition of these go in the module init at the
-// end
-//
 extern PyObject* po_EmptyRRset;
 
 extern PyTypeObject rrset_type;

+ 0 - 5
src/lib/dns/python/rrttl_python.h

@@ -23,11 +23,6 @@ namespace isc {
 namespace dns {
 namespace python {
 
-//
-// Declaration of the custom exceptions
-// Initialization and addition of these go in the module init at the
-// end
-//
 extern PyObject* po_InvalidRRTTL;
 extern PyObject* po_IncompleteRRTTL;
 

+ 0 - 5
src/lib/dns/python/rrtype_python.h

@@ -23,11 +23,6 @@ namespace isc {
 namespace dns {
 namespace python {
 
-//
-// Declaration of the custom exceptions
-// Initialization and addition of these go in the module init at the
-// end
-//
 extern PyObject* po_InvalidRRType;
 extern PyObject* po_IncompleteRRType;
 

+ 0 - 7
src/lib/dns/python/tsig_python.cc

@@ -37,17 +37,10 @@ using namespace isc::util::python;
 using namespace isc::dns;
 using namespace isc::dns::python;
 
-//
-// Definition of the classes
-//
-
 // For each class, we need a struct, a helper functions (init, destroy,
 // and static wrappers around the methods we export), a list of methods,
 // and a type description
 
-//
-// TSIGContext
-//
 namespace {
 // The s_* Class simply covers one instantiation of the object
 class s_TSIGContext : public PyObject {

+ 1 - 9
src/lib/dns/python/tsig_rdata_python.cc

@@ -33,20 +33,12 @@ using namespace isc::dns;
 using namespace isc::dns::rdata;
 using namespace isc::dns::python;
 
-//
-// Definition of the classes
-//
-
 // For each class, we need a struct, a helper functions (init, destroy,
 // and static wrappers around the methods we export), a list of methods,
 // and a type description
 
-//
-// TSIG RDATA
-//
-
 namespace {
-    // The s_* Class simply covers one instantiation of the object
+// The s_* Class simply covers one instantiation of the object
 class s_TSIG : public PyObject {
 public:
     s_TSIG() : cppobj(NULL) {};

+ 0 - 8
src/lib/dns/python/tsigerror_python.cc

@@ -30,18 +30,10 @@ using namespace isc::util::python;
 using namespace isc::dns;
 using namespace isc::dns::python;
 
-//
-// Definition of the classes
-//
-
 // For each class, we need a struct, a helper functions (init, destroy,
 // and static wrappers around the methods we export), a list of methods,
 // and a type description
 
-//
-// TSIGError
-//
-
 // Import pydoc text
 #include "tsigerror_python_inc.cc"
 

+ 1 - 8
src/lib/dns/python/tsigkey_python.cc

@@ -31,10 +31,6 @@ using namespace isc::util::python;
 using namespace isc::dns;
 using namespace isc::dns::python;
 
-//
-// Definition of the classes
-//
-
 // For each class, we need a struct, a helper functions (init, destroy,
 // and static wrappers around the methods we export), a list of methods,
 // and a type description
@@ -307,11 +303,8 @@ PyTSIGKey_ToTSIGKey(const PyObject* tsigkey_obj) {
 // TSIGKeyRing
 //
 
-// The s_* Class simply covers one instantiation of the object
-
-// The s_* Class simply covers one instantiation of the object
-
 namespace {
+// The s_* Class simply covers one instantiation of the object
 class s_TSIGKeyRing : public PyObject {
 public:
     s_TSIGKeyRing() : cppobj(NULL) {};

+ 0 - 6
src/lib/dns/python/tsigrecord_python.cc

@@ -32,10 +32,6 @@ using namespace isc::util::python;
 using namespace isc::dns;
 using namespace isc::dns::python;
 
-//
-// Definition of the classes
-//
-
 // For each class, we need a struct, a helper functions (init, destroy,
 // and static wrappers around the methods we export), a list of methods,
 // and a type description
@@ -44,8 +40,6 @@ using namespace isc::dns::python;
 // TSIGRecord
 //
 
-// Trivial constructor.
-
 namespace {
 // The s_* Class simply covers one instantiation of the object
 class s_TSIGRecord : public PyObject {