File tree 3 files changed +0
-28
lines changed
3 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ class Shared
44
44
void push (T const & val);
45
45
inline T peek () const { return _val; }
46
46
47
- operator T () [[deprecated(" Use 'pop()' instead." )]];
48
- void operator = (T const & val) [[deprecated(" Use 'push()' instead." )]];
49
-
50
47
private:
51
48
52
49
T _val;
@@ -94,16 +91,4 @@ void Shared<T,QUEUE_SIZE>::push(T const & val)
94
91
}
95
92
}
96
93
97
- template <class T , size_t QUEUE_SIZE>
98
- Shared<T,QUEUE_SIZE>::operator T ()
99
- {
100
- return pop ();
101
- }
102
-
103
- template <class T , size_t QUEUE_SIZE>
104
- void Shared<T,QUEUE_SIZE>::operator = (T const & val)
105
- {
106
- push (val);
107
- }
108
-
109
94
#endif /* ARDUINO_THREADS_SHARED_HPP_ */
Original file line number Diff line number Diff line change @@ -40,11 +40,6 @@ class SinkBase
40
40
41
41
virtual T pop () = 0;
42
42
virtual void inject (T const & value) = 0;
43
-
44
- inline operator T () [[deprecated(" Use 'pop()' instead." )]]
45
- {
46
- return pop ();
47
- }
48
43
};
49
44
50
45
template <typename T>
Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ class Source
45
45
void connectTo (SinkBase<T> & sink);
46
46
void push (T const & val);
47
47
48
- void operator = (T const & val) [[deprecated(" Use 'push()' instead." )]];
49
-
50
48
private:
51
49
std::list<SinkBase<T> *> _sink_list;
52
50
};
@@ -72,10 +70,4 @@ void Source<T>::push(T const & val)
72
70
});
73
71
}
74
72
75
- template <typename T>
76
- void Source<T>::operator = (T const & val)
77
- {
78
- push (val);
79
- }
80
-
81
73
#endif /* ARDUINO_THREADS_SOURCE_HPP_ */
You can’t perform that action at this time.
0 commit comments