Kaydet (Commit) 1c5cae47 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods

Change-Id: Ib7a9b1b0802ca751da258065e89b412b090bb672
Reviewed-on: https://gerrit.libreoffice.org/36718Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst da243552
......@@ -317,7 +317,6 @@
#include <tools/link.hxx>
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
......
......@@ -544,7 +544,6 @@
#include <tools/link.hxx>
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resary.hxx>
#include <tools/resid.hxx>
......
......@@ -24,7 +24,6 @@
#include <tools/errinf.hxx>
#include <comphelper/solarmutex.hxx>
#include <basic/sbx.hxx>
#include <tools/rc.hxx>
#include <vcl/svapp.hxx>
#include <comphelper/processfactory.hxx>
#include "image.hxx"
......
......@@ -497,7 +497,6 @@
#include <tools/mapunit.hxx>
#include <tools/multisel.hxx>
#include <tools/poly.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
......
......@@ -28,7 +28,7 @@ usedReturnSet = set() # set of tuple(return_type, name_and_params)
unusedMethodsExclusionSet = set([
# only used by Windows build
"_Bool basegfx::B2ITuple::equalZero() const",
"class basegfx::B2DPolyPolygon basegfx::unotools::UnoPolyPolygon::getPolyPolygonUnsafe() const",
"const class basegfx::B2DPolyPolygon & basegfx::unotools::UnoPolyPolygon::getPolyPolygonUnsafe() const",
"void basegfx::B2IRange::expand(const class basegfx::B2IRange &)",
"void OpenGLContext::requestSingleBufferedRendering()",
"_Bool TabitemValue::isBothAligned() const",
......@@ -263,6 +263,10 @@ for d in definitionSet:
if location.startswith("include/test"): continue
# leave the debug/dump alone
if location.startswith("include/oox/dump"): continue
# plugin testing stuff
if location.startswith("compilerplugins/clang/test"): continue
# leave this alone for now
if location.startswith("include/LibreOfficeKit"): continue
unusedSet.add(d) # used by the "unused return types" analysis
tmp1set.add((method, location))
......
......@@ -194,7 +194,6 @@
#include <tools/link.hxx>
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
......
......@@ -458,7 +458,6 @@
#include <tools/mapunit.hxx>
#include <tools/multisel.hxx>
#include <tools/poly.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
......
......@@ -276,7 +276,6 @@
#include <tools/link.hxx>
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
......
......@@ -202,7 +202,6 @@
#include <tools/link.hxx>
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
......
......@@ -139,7 +139,6 @@
#include <tools/diagnose_ex.h>
#include <tools/gen.hxx>
#include <tools/link.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/solar.h>
......
......@@ -401,10 +401,6 @@ namespace dbaui
*/
css::uno::Reference< css::util::XNumberFormatter > getNumberFormatter(const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,const css::uno::Reference< css::uno::XComponentContext >& _rxContext );
// this completes a help url with the system parameters "Language" and "System"
// detect installed locale
void AppendConfigToken( OUString& _rURL, bool _bQuestionMark );
}
#endif // INCLUDED_DBACCESS_SOURCE_UI_INC_UITOOLS_HXX
......
......@@ -1083,23 +1083,6 @@ OUString getStrippedDatabaseName(const Reference<XPropertySet>& _xDataSource,OUS
return sName;
}
void AppendConfigToken( OUString& _rURL, bool _bQuestionMark )
{
// query part exists?
if ( _bQuestionMark )
// no, so start with '?'
_rURL += "?";
else
// yes, so only append with '&'
_rURL += "&";
// set parameters
_rURL += "Language=";
_rURL += utl::ConfigManager::getLocale();
_rURL += "&System=";
_rURL += SvtHelpOptions().GetSystem();
}
void setEvalDateFormatForFormatter(Reference< css::util::XNumberFormatter >& _rxFormatter)
{
OSL_ENSURE( _rxFormatter.is(),"setEvalDateFormatForFormatter: Formatter is NULL!");
......
......@@ -246,7 +246,6 @@
#include <tools/link.hxx>
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
......
......@@ -274,7 +274,6 @@
#include <tools/link.hxx>
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
......
......@@ -27,7 +27,6 @@
#include "osl/mutex.hxx"
#include <svl/zforlist.hxx>
#include <tools/rc.hxx>
#include <tools/rcid.h>
#include <tools/resary.hxx>
#include <com/sun/star/sheet/FormulaOpCodeMapEntry.hpp>
......
......@@ -217,7 +217,6 @@
#include <tools/link.hxx>
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
......
......@@ -156,7 +156,6 @@
#include <tools/lineend.hxx>
#include <tools/link.hxx>
#include <tools/mapunit.hxx>
#include <tools/rc.hxx>
#include <tools/ref.hxx>
#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
......
......@@ -342,7 +342,6 @@
#include <tools/link.hxx>
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>