mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
Removed unused do_cast functions.
This commit is contained in:
parent
1291cdf432
commit
4086a7f7f6
18
variant.h
18
variant.h
@ -982,24 +982,6 @@ namespace etl
|
||||
|
||||
private:
|
||||
|
||||
//***************************************************************************
|
||||
/// Attempts to up cast the parameter to the specified base class.
|
||||
//***************************************************************************
|
||||
template <typename TBase, typename T>
|
||||
TBase& do_upcast(T& t)
|
||||
{
|
||||
return upcast_functor<TBase, T1, T2, T3, T4, T5, T6, T7, T8>()(t);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Attempts to up cast the parameter to the specified base class.
|
||||
//***************************************************************************
|
||||
template <typename TBase, typename T>
|
||||
const TBase& do_upcast(const T& t) const
|
||||
{
|
||||
return upcast_functor<TBase, T1, T2, T3, T4, T5, T6, T7, T8>()(t);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// The internal storage.
|
||||
/// Aligned on a suitable boundary, which should be good for all types.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user