[cpp-xmltooling] branch main updated: Remove unused param names.
Scott Cantor
cantor.2 at osu.edu
Tue Sep 10 14:47:16 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository cpp-xmltooling.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=9a842830b346fd46b47824954c76487f4eb385f7
The following commit(s) were added to refs/heads/main by this push:
new 9a84283 Remove unused param names.
9a84283 is described below
commit 9a842830b346fd46b47824954c76487f4eb385f7
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Sep 10 10:47:11 2024 -0400
Remove unused param names.
---
xmltooling/AbstractSimpleElement.cpp | 2 +-
xmltooling/XMLToolingConfig.cpp | 2 +-
xmltooling/impl/AnyElement.cpp | 2 +-
xmltooling/impl/UnknownElement.cpp | 14 +++++++-------
xmltooling/io/AbstractXMLObjectMarshaller.cpp | 2 +-
xmltooling/io/AbstractXMLObjectUnmarshaller.cpp | 2 +-
xmltooling/io/HTTPResponse.cpp | 2 +-
xmltooling/soap/impl/SOAPClient.cpp | 8 ++++----
xmltooling/soap/impl/SOAPImpl.cpp | 6 +++---
xmltooling/util/ParserPool.cpp | 10 +++++-----
xmltooling/util/XMLHelper.cpp | 6 +++---
11 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/xmltooling/AbstractSimpleElement.cpp b/xmltooling/AbstractSimpleElement.cpp
index 9e4d4a2..187c924 100644
--- a/xmltooling/AbstractSimpleElement.cpp
+++ b/xmltooling/AbstractSimpleElement.cpp
@@ -62,7 +62,7 @@ const list<XMLObject*>& AbstractSimpleElement::getOrderedChildren() const
return m_no_children;
}
-void AbstractSimpleElement::removeChild(XMLObject* child)
+void AbstractSimpleElement::removeChild(XMLObject*)
{
throw XMLObjectException("Cannot remove child from a childless object.");
}
diff --git a/xmltooling/XMLToolingConfig.cpp b/xmltooling/XMLToolingConfig.cpp
index 936f15e..a307c1b 100644
--- a/xmltooling/XMLToolingConfig.cpp
+++ b/xmltooling/XMLToolingConfig.cpp
@@ -188,7 +188,7 @@ namespace {
return nullptr;
}
- void setBaseURI(const XMLCh* uri) {}
+ void setBaseURI(const XMLCh*) {}
XSECURIResolver* clone() {
return new BlockingXSECURIResolver();
diff --git a/xmltooling/impl/AnyElement.cpp b/xmltooling/impl/AnyElement.cpp
index fe829c3..2c5c2fe 100644
--- a/xmltooling/impl/AnyElement.cpp
+++ b/xmltooling/impl/AnyElement.cpp
@@ -81,7 +81,7 @@ void AnyElementImpl::marshallAttributes(DOMElement* domElement) const
marshallExtensionAttributes(domElement);
}
-void AnyElementImpl::processChildElement(XMLObject* childXMLObject, const DOMElement* root)
+void AnyElementImpl::processChildElement(XMLObject* childXMLObject, const DOMElement*)
{
getUnknownXMLObjects().push_back(childXMLObject);
}
diff --git a/xmltooling/impl/UnknownElement.cpp b/xmltooling/impl/UnknownElement.cpp
index 270b50f..81fbe57 100644
--- a/xmltooling/impl/UnknownElement.cpp
+++ b/xmltooling/impl/UnknownElement.cpp
@@ -81,12 +81,12 @@ XMLObject* UnknownElementImpl::clone() const
return ret;
}
-const XMLCh* UnknownElementImpl::getTextContent(unsigned int position) const
+const XMLCh* UnknownElementImpl::getTextContent(unsigned int) const
{
throw XMLObjectException("Direct access to content is not permitted.");
}
-void UnknownElementImpl::setTextContent(const XMLCh*, unsigned int position)
+void UnknownElementImpl::setTextContent(const XMLCh*, unsigned int)
{
throw XMLObjectException("Direct access to content is not permitted.");
}
@@ -109,8 +109,8 @@ void UnknownElementImpl::serialize(string& s) const
DOMElement* UnknownElementImpl::marshall(
DOMDocument* document
#ifndef XMLTOOLING_NO_XMLSEC
- ,const vector<Signature*>* sigs
- ,const Credential* credential
+ ,const vector<Signature*>*
+ ,const Credential*
#endif
) const
{
@@ -194,8 +194,8 @@ DOMElement* UnknownElementImpl::marshall(
DOMElement* UnknownElementImpl::marshall(
DOMElement* parentElement
#ifndef XMLTOOLING_NO_XMLSEC
- ,const vector<Signature*>* sigs
- ,const Credential* credential
+ ,const vector<Signature*>*
+ ,const Credential*
#endif
) const
{
@@ -271,7 +271,7 @@ XMLObject* UnknownElementImpl::unmarshall(DOMElement* element, bool bindDocument
}
XMLObject* UnknownElementBuilder::buildObject(
- const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const xmltooling::QName* schemaType
+ const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const xmltooling::QName*
) const
{
return new UnknownElementImpl(nsURI,localName,prefix);
diff --git a/xmltooling/io/AbstractXMLObjectMarshaller.cpp b/xmltooling/io/AbstractXMLObjectMarshaller.cpp
index 2fcc667..f361c10 100644
--- a/xmltooling/io/AbstractXMLObjectMarshaller.cpp
+++ b/xmltooling/io/AbstractXMLObjectMarshaller.cpp
@@ -387,7 +387,7 @@ void AbstractXMLObjectMarshaller::marshallContent(
}
}
-void AbstractXMLObjectMarshaller::marshallAttributes(DOMElement* domElement) const
+void AbstractXMLObjectMarshaller::marshallAttributes(DOMElement*) const
{
}
diff --git a/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp b/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp
index 669e99a..24c9f54 100644
--- a/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp
+++ b/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp
@@ -218,7 +218,7 @@ void AbstractXMLObjectUnmarshaller::unmarshallContent(const DOMElement* domEleme
}
}
-void AbstractXMLObjectUnmarshaller::processChildElement(XMLObject* child, const DOMElement* childRoot)
+void AbstractXMLObjectUnmarshaller::processChildElement(XMLObject* child, const DOMElement*)
{
throw UnmarshallingException("Invalid child element: $1",params(1,child->getElementQName().toString().c_str()));
}
diff --git a/xmltooling/io/HTTPResponse.cpp b/xmltooling/io/HTTPResponse.cpp
index db52c33..4323ad4 100644
--- a/xmltooling/io/HTTPResponse.cpp
+++ b/xmltooling/io/HTTPResponse.cpp
@@ -142,7 +142,7 @@ void HTTPResponse::setCookie(const char* name, const char* value, time_t expires
}
}
-void HTTPResponse::setResponseHeader(const char* name, const char* value, bool replace)
+void HTTPResponse::setResponseHeader(const char* name, const char* value, bool)
{
if (name) {
for (const char* ch=name; *ch; ++ch) {
diff --git a/xmltooling/soap/impl/SOAPClient.cpp b/xmltooling/soap/impl/SOAPClient.cpp
index 7910a48..2df20e2 100644
--- a/xmltooling/soap/impl/SOAPClient.cpp
+++ b/xmltooling/soap/impl/SOAPClient.cpp
@@ -76,12 +76,12 @@ SOAPTransport::~SOAPTransport()
{
}
-bool SOAPTransport::setProviderOption(const char* provider, const char* option, const char* value)
+bool SOAPTransport::setProviderOption(const char*, const char*, const char*)
{
return false;
}
-bool SOAPTransport::setCacheTag(string* cacheTag)
+bool SOAPTransport::setCacheTag(string*)
{
return false;
}
@@ -106,7 +106,7 @@ HTTPSOAPTransport::~HTTPSOAPTransport()
{
}
-bool HTTPSOAPTransport::followRedirects(bool follow, unsigned int maxRedirs)
+bool HTTPSOAPTransport::followRedirects(bool, unsigned int)
{
return false;
}
@@ -211,7 +211,7 @@ Envelope* SOAPClient::receive()
return env;
}
-void SOAPClient::prepareTransport(SOAPTransport& transport)
+void SOAPClient::prepareTransport(SOAPTransport&)
{
}
diff --git a/xmltooling/soap/impl/SOAPImpl.cpp b/xmltooling/soap/impl/SOAPImpl.cpp
index 45c7486..26c5f58 100644
--- a/xmltooling/soap/impl/SOAPImpl.cpp
+++ b/xmltooling/soap/impl/SOAPImpl.cpp
@@ -133,7 +133,7 @@ namespace {
marshallExtensionAttributes(domElement);
}
- void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
+ void processChildElement(XMLObject* childXMLObject, const DOMElement*) {
getUnknownXMLObjects().push_back(childXMLObject);
}
@@ -235,7 +235,7 @@ namespace {
marshallExtensionAttributes(domElement);
}
- void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
+ void processChildElement(XMLObject* childXMLObject, const DOMElement*) {
getUnknownXMLObjects().push_back(childXMLObject);
}
@@ -275,7 +275,7 @@ namespace {
marshallExtensionAttributes(domElement);
}
- void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
+ void processChildElement(XMLObject* childXMLObject, const DOMElement*) {
getUnknownXMLObjects().push_back(childXMLObject);
}
diff --git a/xmltooling/util/ParserPool.cpp b/xmltooling/util/ParserPool.cpp
index 594c064..bba5cc3 100644
--- a/xmltooling/util/ParserPool.cpp
+++ b/xmltooling/util/ParserPool.cpp
@@ -323,9 +323,9 @@ bool ParserPool::loadCatalog(const XMLCh* pathname)
}
DOMLSInput* ParserPool::resolveResource(
- const XMLCh *const resourceType,
- const XMLCh *const namespaceUri,
- const XMLCh *const publicId,
+ const XMLCh *const,
+ const XMLCh *const,
+ const XMLCh *const,
const XMLCh *const systemId,
const XMLCh *const baseURI
)
@@ -464,11 +464,11 @@ XMLSize_t StreamInputSource::StreamBinInputStream::readBytes(XMLByte* const toFi
#ifdef XMLTOOLING_LITE
-URLInputSource::URLInputSource(const XMLCh* url, const char* systemId, string* cacheTag, std::string backingFile) : InputSource(systemId), m_backingFile(backingFile), m_url(url)
+URLInputSource::URLInputSource(const XMLCh* url, const char* systemId, string*, std::string backingFile) : InputSource(systemId), m_backingFile(backingFile), m_url(url)
{
}
-URLInputSource::URLInputSource(const DOMElement* e, const char* systemId, string* cacheTag, std::string backingFile) : InputSource(systemId), m_backingFile(backingFile)
+URLInputSource::URLInputSource(const DOMElement* e, const char* systemId, string*, std::string backingFile) : InputSource(systemId), m_backingFile(backingFile)
{
static const XMLCh uri[] = UNICODE_LITERAL_3(u,r,i);
static const XMLCh url[] = UNICODE_LITERAL_3(u,r,l);
diff --git a/xmltooling/util/XMLHelper.cpp b/xmltooling/util/XMLHelper.cpp
index f86af73..29e2970 100644
--- a/xmltooling/util/XMLHelper.cpp
+++ b/xmltooling/util/XMLHelper.cpp
@@ -515,7 +515,7 @@ namespace {
StreamFormatTarget(std::ostream& out) : m_out(out) {}
~StreamFormatTarget() {}
- void writeChars(const XMLByte *const toWrite, const XMLSize_t count, XMLFormatter *const formatter) {
+ void writeChars(const XMLByte *const toWrite, const XMLSize_t count, XMLFormatter *const) {
m_out.write(reinterpret_cast<const char*>(toWrite),count);
}
@@ -568,12 +568,12 @@ ostream& xmltooling::operator<<(ostream& ostr, const XMLObject& obj)
namespace {
extern "C" {
- voidpf saml_zalloc(void* opaque, uInt items, uInt size)
+ voidpf saml_zalloc(void*, uInt items, uInt size)
{
return malloc(items*size);
}
- void saml_zfree(void* opaque, voidpf addr)
+ void saml_zfree(void*, voidpf addr)
{
free(addr);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list