Skip to content
Snippets Groups Projects
Commit 72023db2 authored by René Fritze's avatar René Fritze Committed by René Milk
Browse files

remove some long-since (> 10 months) deprecated stuff

parent 14003a2e
No related branches found
No related tags found
No related merge requests found
......@@ -30,29 +30,6 @@ namespace XT {
namespace Grid {
template <class GridPartOrViewType, size_t codim = 0>
class DUNE_DEPRECATED_MSG("Use extract_entity_t<GridPartOrViewType> instead (27.03.2017)!") Entity
{
template <class GridViewType, bool is_view>
struct Choose
{
typedef typename GridViewType::template Codim<codim>::Entity Type;
};
template <class GridPartType>
struct Choose<GridPartType, false>
{
typedef typename GridPartType::template Codim<codim>::EntityType Type;
};
static const bool this_is_a_grid_view =
std::is_base_of<GridView<typename GridPartOrViewType::Traits>, GridPartOrViewType>::value;
public:
typedef typename Choose<GridPartOrViewType, this_is_a_grid_view>::Type Type;
typedef Type type;
}; // class Entity
template <class EntityType>
void print_entity(const EntityType& entity,
const std::string name = Common::Typename<EntityType>::value(),
......
......@@ -142,20 +142,6 @@ public:
return grid_ptr_->maxLevel();
}
template <Backends backend>
typename Layer<GridType, Layers::level, backend>::type DUNE_DEPRECATED_MSG("Use level_view() instead (09.05.2017)!")
level(const int lvl = 0) const
{
return Layer<GridType, Layers::level, backend>::create(*grid_ptr_, lvl);
}
template <Backends backend>
typename Layer<GridType, Layers::leaf, backend>::type DUNE_DEPRECATED_MSG("Use leaf_view() instead (09.05.2017)!")
leaf() const
{
return Layer<GridType, Layers::leaf, backend>::create(*grid_ptr_);
}
template <Layers lr, Backends backend>
typename Layer<GridType, lr, backend, DdGridType>::type layer(const int lvl = 0) const
{
......
......@@ -37,15 +37,6 @@ namespace XT {
namespace Grid {
template <class GridPartOrViewType>
class DUNE_DEPRECATED_MSG("Use extract_intersection_t<> instead (21.03.2017)!") Intersection
{
public:
typedef extract_intersection_t<GridPartOrViewType> Type;
typedef extract_intersection_t<GridPartOrViewType> type;
};
/**
\brief prints some basic information about a Dune::Intersection, namely the number of its corners and the
coordinates of those corners.
......
......@@ -133,13 +133,6 @@ struct is_view<T, true> : public std::is_base_of<Dune::GridView<typename T::Trai
{
};
template <class T>
struct DUNE_DEPRECATED_MSG("Use is_view instead (03.04.2017)!") is_grid_view : public is_view<T>
{
};
template <class T>
struct is_dd_subdomain : public std::false_type
{
......@@ -180,12 +173,6 @@ struct is_part : public std::false_type
};
template <class T>
struct DUNE_DEPRECATED_MSG("Use is_part instead (03.04.2017)!") is_grid_part : public is_part<T>
{
};
template <class T>
struct is_layer : public std::integral_constant<bool,
is_view<T>::value || is_part<T>::value || is_dd_subdomain<T>::value
......
......@@ -55,11 +55,6 @@ public:
passThrough_ = passThrough;
}
void DUNE_DEPRECATED_MSG("Use setBoundarySegmentIndex(id) instead (07.03.2017)!") setBoundaryId(const int /*id*/)
{
DUNE_THROW(XT::Common::Exceptions::you_are_using_this_wrong, "Use setBoundarySegmentIndex(id) instead!");
}
void setBoundarySegmentIndex(const size_t index)
{
boundary_segment_index_ = index;
......@@ -81,11 +76,6 @@ public:
return true;
}
int DUNE_DEPRECATED_MSG("Use boundarySegmentIndex(id) instead (07.03.2017)!") boundaryId() const
{
return boost::numeric_cast<int>(boundarySegmentIndex());
}
size_t boundarySegmentIndex() const
{
if (passThrough_)
......
......@@ -56,7 +56,6 @@ class Walker : public Functor::Codim0And1<GridLayerImp>
typedef Walker<GridLayerImp> ThisType;
public:
typedef GridLayerImp GridViewType DUNE_DEPRECATED_MSG("Use GridLayerType instead (02.04.2017)!");
typedef GridLayerImp GridLayerType;
using EntityType = extract_entity_t<GridLayerType>;
using IntersectionType = extract_intersection_t<GridLayerType>;
......@@ -71,11 +70,6 @@ public:
Walker(Walker&& source) = default;
const GridLayerType& grid_view() const DUNE_DEPRECATED_MSG("Use grid_layer() instead (02.04.2017)!")
{
return grid_layer_;
}
const GridLayerType& grid_layer() const
{
return grid_layer_;
......@@ -168,13 +162,6 @@ public:
return *this;
} // ... append(...)
template <class... Args>
DUNE_DEPRECATED_MSG("Use append() instead (since 11.01.2017)!")
ThisType& add(Args&&... args)
{
return append(std::forward<Args>(args)...);
}
void clear()
{
codim0_functors_.clear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment