Kaydet (Commit) 2c355e3a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unused ItemProcessor argument

Change-Id: Ie650f8c046f60a749999e1819edb5abad79e5362
üst a679ae4c
...@@ -210,7 +210,7 @@ void PresenterConfigurationAccess::ForAll ( ...@@ -210,7 +210,7 @@ void PresenterConfigurationAccess::ForAll (
else else
bHasAllValues = false; bHasAllValues = false;
if (bHasAllValues) if (bHasAllValues)
rProcessor(rsKey,aValues); rProcessor(aValues);
} }
} }
} }
......
...@@ -123,7 +123,6 @@ public: ...@@ -123,7 +123,6 @@ public:
void CommitChanges(); void CommitChanges();
typedef ::std::function<void ( typedef ::std::function<void (
const OUString&,
const ::std::vector<css::uno::Any>&) > ItemProcessor; const ::std::vector<css::uno::Any>&) > ItemProcessor;
typedef ::std::function<void ( typedef ::std::function<void (
const OUString&, const OUString&,
......
...@@ -687,9 +687,9 @@ void PresenterScreen::ProcessLayout ( ...@@ -687,9 +687,9 @@ void PresenterScreen::ProcessLayout (
PresenterConfigurationAccess::ForAll( PresenterConfigurationAccess::ForAll(
xList, xList,
aProperties, aProperties,
[this, rxContext, rxAnchorId](OUString const& rString, std::vector<uno::Any> const& rArgs) [this, rxContext, rxAnchorId](std::vector<uno::Any> const& rArgs)
{ {
this->ProcessComponent(rString, rArgs, rxContext, rxAnchorId); this->ProcessComponent(rArgs, rxContext, rxAnchorId);
}); });
} }
catch (const RuntimeException&) catch (const RuntimeException&)
...@@ -714,9 +714,9 @@ void PresenterScreen::ProcessViewDescriptions ( ...@@ -714,9 +714,9 @@ void PresenterScreen::ProcessViewDescriptions (
PresenterConfigurationAccess::ForAll( PresenterConfigurationAccess::ForAll(
xViewDescriptionsNode, xViewDescriptionsNode,
aProperties, aProperties,
[this](OUString const& rString, std::vector<uno::Any> const& rArgs) [this](std::vector<uno::Any> const& rArgs)
{ {
return this->ProcessViewDescription(rString, rArgs); return this->ProcessViewDescription(rArgs);
}); });
} }
catch (const RuntimeException&) catch (const RuntimeException&)
...@@ -726,13 +726,10 @@ void PresenterScreen::ProcessViewDescriptions ( ...@@ -726,13 +726,10 @@ void PresenterScreen::ProcessViewDescriptions (
} }
void PresenterScreen::ProcessComponent ( void PresenterScreen::ProcessComponent (
const OUString& rsKey,
const ::std::vector<Any>& rValues, const ::std::vector<Any>& rValues,
const Reference<XComponentContext>& rxContext, const Reference<XComponentContext>& rxContext,
const Reference<XResourceId>& rxAnchorId) const Reference<XResourceId>& rxAnchorId)
{ {
(void)rsKey;
if (rValues.size() != 6) if (rValues.size() != 6)
return; return;
...@@ -768,11 +765,8 @@ void PresenterScreen::ProcessComponent ( ...@@ -768,11 +765,8 @@ void PresenterScreen::ProcessComponent (
} }
void PresenterScreen::ProcessViewDescription ( void PresenterScreen::ProcessViewDescription (
const OUString& rsKey,
const ::std::vector<Any>& rValues) const ::std::vector<Any>& rValues)
{ {
(void)rsKey;
if (rValues.size() != 4) if (rValues.size() != 4)
return; return;
......
...@@ -182,7 +182,6 @@ private: ...@@ -182,7 +182,6 @@ private:
configuration list. configuration list.
*/ */
void ProcessComponent ( void ProcessComponent (
const OUString& rsKey,
const ::std::vector<css::uno::Any>& rValues, const ::std::vector<css::uno::Any>& rValues,
const css::uno::Reference<css::uno::XComponentContext>& rxContext, const css::uno::Reference<css::uno::XComponentContext>& rxContext,
const css::uno::Reference<css::drawing::framework::XResourceId>& rxAnchorId); const css::uno::Reference<css::drawing::framework::XResourceId>& rxAnchorId);
...@@ -195,7 +194,6 @@ private: ...@@ -195,7 +194,6 @@ private:
/** Called by ProcessViewDescriptions for a single entry. /** Called by ProcessViewDescriptions for a single entry.
*/ */
void ProcessViewDescription ( void ProcessViewDescription (
const OUString& rsKey,
const ::std::vector<css::uno::Any>& rValues); const ::std::vector<css::uno::Any>& rValues);
void SetupView ( void SetupView (
......
...@@ -155,7 +155,6 @@ public: ...@@ -155,7 +155,6 @@ public:
private: private:
void ProcessPaneStyle ( void ProcessPaneStyle (
ReadContext& rReadContext, ReadContext& rReadContext,
const OUString& rsKey,
const ::std::vector<css::uno::Any>& rValues); const ::std::vector<css::uno::Any>& rValues);
}; };
...@@ -217,7 +216,6 @@ private: ...@@ -217,7 +216,6 @@ private:
void ProcessStyleAssociation( void ProcessStyleAssociation(
ReadContext& rReadContext, ReadContext& rReadContext,
const OUString& rsKey,
const ::std::vector<css::uno::Any>& rValues); const ::std::vector<css::uno::Any>& rValues);
}; };
...@@ -847,20 +845,17 @@ void PaneStyleContainer::Read ( ...@@ -847,20 +845,17 @@ void PaneStyleContainer::Read (
PresenterConfigurationAccess::ForAll( PresenterConfigurationAccess::ForAll(
xPaneStyleList, xPaneStyleList,
aProperties, aProperties,
[this, &rReadContext] (OUString const& rKey, std::vector<uno::Any> const& rValues) [this, &rReadContext] (std::vector<uno::Any> const& rValues)
{ {
return this->ProcessPaneStyle(rReadContext, rKey, rValues); return this->ProcessPaneStyle(rReadContext, rValues);
}); });
} }
} }
void PaneStyleContainer::ProcessPaneStyle( void PaneStyleContainer::ProcessPaneStyle(
ReadContext& rReadContext, ReadContext& rReadContext,
const OUString& rsKey,
const ::std::vector<Any>& rValues) const ::std::vector<Any>& rValues)
{ {
(void)rsKey;
if (rValues.size() != 6) if (rValues.size() != 6)
return; return;
...@@ -1086,9 +1081,9 @@ void StyleAssociationContainer::Read ( ...@@ -1086,9 +1081,9 @@ void StyleAssociationContainer::Read (
PresenterConfigurationAccess::ForAll( PresenterConfigurationAccess::ForAll(
xStyleAssociationList, xStyleAssociationList,
aProperties, aProperties,
[this, &rReadContext] (OUString const& rKey, std::vector<uno::Any> const& rValues) [this, &rReadContext] (std::vector<uno::Any> const& rValues)
{ {
return this->ProcessStyleAssociation(rReadContext, rKey, rValues); return this->ProcessStyleAssociation(rReadContext, rValues);
}); });
} }
} }
...@@ -1104,11 +1099,9 @@ OUString StyleAssociationContainer::GetStyleName (const OUString& rsResourceName ...@@ -1104,11 +1099,9 @@ OUString StyleAssociationContainer::GetStyleName (const OUString& rsResourceName
void StyleAssociationContainer::ProcessStyleAssociation( void StyleAssociationContainer::ProcessStyleAssociation(
ReadContext& rReadContext, ReadContext& rReadContext,
const OUString& rsKey,
const ::std::vector<Any>& rValues) const ::std::vector<Any>& rValues)
{ {
(void)rReadContext; (void)rReadContext;
(void)rsKey;
if (rValues.size() != 2) if (rValues.size() != 2)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment