diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-12 12:19:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-12 14:50:16 +0200 |
commit | 3df141b2084d3abc1587ef24d2b371b779bb3d50 (patch) | |
tree | 2d24947c36901ec68ad0be2d85fd55d4542e1006 /jvmfwk | |
parent | 7811a0e581ca34f59daf4210c568f818d8c9dfdd (diff) |
loplugin:unusedmethods
Change-Id: Ie90e53583484ee4f378ec92634adf3be7cd9ecbb
Reviewed-on: https://gerrit.libreoffice.org/70650
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'jvmfwk')
-rw-r--r-- | jvmfwk/inc/fwkbase.hxx | 2 | ||||
-rw-r--r-- | jvmfwk/source/fwkbase.cxx | 26 |
2 files changed, 0 insertions, 28 deletions
diff --git a/jvmfwk/inc/fwkbase.hxx b/jvmfwk/inc/fwkbase.hxx index 8fe077b79a28..8d9ae93a995e 100644 --- a/jvmfwk/inc/fwkbase.hxx +++ b/jvmfwk/inc/fwkbase.hxx @@ -40,8 +40,6 @@ public: VendorSettings(); boost::optional<VersionInfo> getVersionInformation(const OUString & sVendor) const; - - ::std::vector< OUString> getSupportedVendors() const; }; /* The class offers functions to retrieve verified bootstrap parameters. diff --git a/jvmfwk/source/fwkbase.cxx b/jvmfwk/source/fwkbase.cxx index 73d7925f8707..1ea13e8f0c42 100644 --- a/jvmfwk/source/fwkbase.cxx +++ b/jvmfwk/source/fwkbase.cxx @@ -210,32 +210,6 @@ boost::optional<VersionInfo> VendorSettings::getVersionInformation(const OUStrin return aVersionInfo; } -std::vector<OUString> VendorSettings::getSupportedVendors() const -{ - std::vector<OUString> vecVendors; - //get the nodeset for the vendor elements - jfw::CXPathObjectPtr result; - result = xmlXPathEvalExpression( - reinterpret_cast<xmlChar const *>("/jf:javaSelection/jf:vendorInfos/jf:vendor"), - m_xmlPathContextVendorSettings); - if (!xmlXPathNodeSetIsEmpty(result->nodesetval)) - { - //get the values of the vendor elements + name attribute - xmlNode* cur = result->nodesetval->nodeTab[0]; - while (cur != nullptr) - { - //between vendor elements are also text elements - if (cur->type == XML_ELEMENT_NODE) - { - jfw::CXmlCharPtr sAttrVendor(xmlGetProp(cur, reinterpret_cast<xmlChar const *>("name"))); - vecVendors.push_back(sAttrVendor); - } - cur = cur->next; - } - } - return vecVendors; -} - ::std::vector<OString> BootParams::getVMParameters() { ::std::vector<OString> vecParams; |