summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-29 12:40:47 +0200
committerNoel Grandin <noel@peralex.com>2015-09-29 15:08:43 +0200
commit34180700b2686c97cdce0b52ca9578a41a153035 (patch)
tree073f3753e4483f30efa3c7c769f23971e6a046d5 /include/comphelper
parente710170d906fcb248a5e4ff5a3a90cbf0e20003d (diff)
loplugin:removeunusedmethods, remove unused stuff
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/configuration.hxx8
-rw-r--r--include/comphelper/optional.hxx32
2 files changed, 0 insertions, 40 deletions
diff --git a/include/comphelper/configuration.hxx b/include/comphelper/configuration.hxx
index 226462fad992..8ca6bd7eccfd 100644
--- a/include/comphelper/configuration.hxx
+++ b/include/comphelper/configuration.hxx
@@ -242,14 +242,6 @@ private:
/// to access each given localized configuration property.
template< typename T, typename U > struct ConfigurationLocalizedProperty
{
- /// Get the read-only status of the given localized configuration property.
- static bool isReadOnly(
- css::uno::Reference<css::uno::XComponentContext> const & context
- = comphelper::getProcessComponentContext())
- {
- return detail::ConfigurationWrapper::get(context).isReadOnly(T::path());
- }
-
/// Get the value of the given localized configuration property, for the
/// locale currently set at the
/// com.sun.star.configuration.theDefaultProvider.
diff --git a/include/comphelper/optional.hxx b/include/comphelper/optional.hxx
index a1ffba09cdf9..5ea8bb7ba242 100644
--- a/include/comphelper/optional.hxx
+++ b/include/comphelper/optional.hxx
@@ -42,38 +42,6 @@ inline ::boost::optional<T> make_optional(
return ::boost::optional<T>();
}
-template <typename T>
-inline ::com::sun::star::beans::Optional<T> makeOptional( T const& v )
-{
-// CPPU_IS_CPP_MAPPING_OF_NON_VOID_UNO_TYPE(T);
- return ::com::sun::star::beans::Optional<T>(true, v);
-}
-
-template <typename T>
-inline ::com::sun::star::beans::Optional<T> makeOptional(
- ::boost::optional<T> const& o )
-{
-// CPPU_IS_CPP_MAPPING_OF_NON_VOID_UNO_TYPE(T);
- if (o)
- return ::com::sun::star::beans::Optional<T>(true, *o);
- else
- return ::com::sun::star::beans::Optional<T>();
-}
-
-inline ::com::sun::star::beans::Optional<sal_Bool> makeOptional(
- ::boost::optional<bool> const& o )
-{
- if (o)
- return ::com::sun::star::beans::Optional<sal_Bool>(true, *o);
- else
- return ::com::sun::star::beans::Optional<sal_Bool>();
-}
-
-inline ::com::sun::star::beans::Optional<sal_Bool> makeOptional( bool v )
-{
- return ::com::sun::star::beans::Optional<sal_Bool>(true, v);
-}
-
} // namespace comphelper
#endif // ! defined(INCLUDED_COMPHELPER_OPTIONAL_HXX)