mirror of
https://github.com/LibreOffice/core.git
synced 2025-08-15 20:47:46 +00:00
loplugin:unusedmethods
Change-Id: I2dc35fc72923ee20b9deabf3239af3d859e2fe23 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187707 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@ -231,8 +231,6 @@ public:
|
||||
{ return PutImpl(*xItem.release(), /*bPassingOwnership*/true); }
|
||||
const SfxPoolItem* PutAsTargetWhich(const SfxPoolItem& rItem, sal_uInt16 nTargetWhich )
|
||||
{ return PutImplAsTargetWhich(rItem, nTargetWhich, false); }
|
||||
const SfxPoolItem* PutAsTargetWhich(std::unique_ptr<SfxPoolItem> xItem, sal_uInt16 nTargetWhich )
|
||||
{ return PutImplAsTargetWhich(*xItem.release(), nTargetWhich, true); }
|
||||
bool Put( const SfxItemSet&,
|
||||
bool bInvalidAsDefault = true );
|
||||
void PutExtended( const SfxItemSet&,
|
||||
|
@ -490,7 +490,6 @@ public:
|
||||
bool get_value_changed_from_saved() const { return get_value() != get_saved_value(); }
|
||||
int get_count() const { return m_xComboBox->get_count(); }
|
||||
OUString get_text(int i) const { return m_xComboBox->get_text(i); }
|
||||
void grab_focus() { m_xComboBox->grab_focus(); }
|
||||
bool has_focus() const { return m_xComboBox->has_focus(); }
|
||||
void connect_entry_activate(const Link<weld::ComboBox&, bool>& rLink) { m_xComboBox->connect_entry_activate(rLink); }
|
||||
void disable_entry_completion() { m_xComboBox->set_entry_completion(false, false); }
|
||||
|
@ -60,15 +60,6 @@ public:
|
||||
*/
|
||||
ResourceId();
|
||||
|
||||
/** Create a new resource id that is described by the given URLs.
|
||||
@param rsResourceURLs
|
||||
The first URL specifies the type of resource. The other URLs
|
||||
describe its anchor.
|
||||
The set of URLs may be empty. The result is then the same as
|
||||
returned by ResourceId() default constructor.
|
||||
*/
|
||||
ResourceId (std::vector<OUString>&& rsResourceURLs);
|
||||
|
||||
/** Create a new resource id that has an empty anchor.
|
||||
@param rsResourceURL
|
||||
When this resource URL is empty then the resulting ResourceId
|
||||
@ -96,20 +87,6 @@ public:
|
||||
const OUString& rsResourceURL,
|
||||
const OUString& rsAnchorURL);
|
||||
|
||||
/** Create a new resource id with an anchor that consists of a sequence
|
||||
of URLs that is extended by a further URL.
|
||||
@param rsResourceURL
|
||||
The URL of the actual resource.
|
||||
@param rsFirstAnchorURL
|
||||
This URL extends the anchor given by rAnchorURLs.
|
||||
@param rAnchorURLs
|
||||
An anchor as it is returned by ResourceId::getAnchorURLs().
|
||||
*/
|
||||
ResourceId (
|
||||
const OUString& rsResourceURL,
|
||||
const OUString& rsFirstAnchorURL,
|
||||
const std::vector<OUString>& rAnchorURLs);
|
||||
|
||||
virtual ~ResourceId() override;
|
||||
|
||||
/** Return the URL of the resource. Arguments supplied on creation are
|
||||
|
@ -45,13 +45,6 @@ ResourceId::ResourceId()
|
||||
{
|
||||
}
|
||||
|
||||
ResourceId::ResourceId (
|
||||
std::vector<OUString>&& rResourceURLs)
|
||||
: maResourceURLs(std::move(rResourceURLs))
|
||||
{
|
||||
ParseResourceURL();
|
||||
}
|
||||
|
||||
ResourceId::ResourceId (
|
||||
const OUString& rsResourceURL)
|
||||
: maResourceURLs(1, rsResourceURL)
|
||||
@ -85,18 +78,6 @@ ResourceId::ResourceId (
|
||||
ParseResourceURL();
|
||||
}
|
||||
|
||||
ResourceId::ResourceId (
|
||||
const OUString& rsResourceURL,
|
||||
const OUString& rsFirstAnchorURL,
|
||||
const std::vector<OUString>& rAnchorURLs)
|
||||
: maResourceURLs(2+rAnchorURLs.size())
|
||||
{
|
||||
maResourceURLs[0] = rsResourceURL;
|
||||
maResourceURLs[1] = rsFirstAnchorURL;
|
||||
std::copy(rAnchorURLs.begin(), rAnchorURLs.end(), std::next(maResourceURLs.begin(), 2));
|
||||
ParseResourceURL();
|
||||
}
|
||||
|
||||
ResourceId::~ResourceId()
|
||||
{
|
||||
mpURL.reset();
|
||||
|
Reference in New Issue
Block a user