Browse Source

more cleanup:
- removed obsolete comment about UNUSED_PARAM
- omitting more unused parameters (that didn't cause a warning simply because we specified -Wno-unused-parameter


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac409@3490 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 14 years ago
parent
commit
e362d1a745

+ 1 - 1
src/lib/cc/data.cc

@@ -719,7 +719,7 @@ Element::fromWire(const std::string& s) {
 }
 
 ElementPtr
-Element::fromWire(std::stringstream& in, int length) {
+Element::fromWire(std::stringstream& in, int) {
     //
     // Check protocol version
     //

+ 1 - 1
src/lib/config/tests/fake_session.cc

@@ -91,7 +91,7 @@ FakeSession::startRead(boost::function<void()>) {
 }
 
 void
-FakeSession::establish(const char* socket_file) {
+FakeSession::establish(const char*) {
 }
 
 bool

+ 1 - 1
src/lib/config/tests/fake_session.h

@@ -63,7 +63,7 @@ public:
     virtual int reply(isc::data::ConstElementPtr envelope,
                       isc::data::ConstElementPtr newmsg);
     virtual bool hasQueuedMsgs() const;
-    virtual void setTimeout(size_t milliseconds) {}
+    virtual void setTimeout(size_t) {}
     virtual size_t getTimeout() const { return (0); }
     isc::data::ConstElementPtr getFirstMessage(std::string& group,
                                                std::string& to) const;

+ 0 - 7
src/lib/datasrc/data_source.cc

@@ -1247,13 +1247,6 @@ Nsec3Param::getHash(const Name& name) const {
     return (encodeBase32Hex(vector<uint8_t>(digest, digest + SHA1_HASHSIZE)));
 }
 
-//
-// The following methods are effectively empty, and their parameters are
-// unused.  To silence compilers that warn unused function parameters,
-// we specify a (compiler dependent) special keyword when available.
-// It's defined in config.h, and to avoid including this header file from
-// installed files we define the methods here.
-//
 DataSrc::Result
 DataSrc::init(isc::data::ConstElementPtr) {
     return (NOT_IMPLEMENTED);