File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -140,18 +140,8 @@ uint8_t Client::status() {
140
140
return W5100.readSnSR (_sock);
141
141
}
142
142
143
- // the next three functions are a hack so we can compare the client returned
144
- // by Server::available() to null, or use it as the condition in an
145
- // if-statement. this lets us stay compatible with the Processing network
146
- // library.
147
-
148
- uint8_t Client::operator ==(int p) {
149
- return _sock == MAX_SOCK_NUM;
150
- }
151
-
152
- uint8_t Client::operator !=(int p) {
153
- return _sock != MAX_SOCK_NUM;
154
- }
143
+ // the next function allows us to use the client returned by
144
+ // Server::available() as the condition in an if-statement.
155
145
156
146
Client::operator bool () {
157
147
return _sock != MAX_SOCK_NUM;
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ class Client : public Stream {
22
22
virtual void flush ();
23
23
void stop ();
24
24
uint8_t connected ();
25
- uint8_t operator ==(int );
26
- uint8_t operator !=(int );
27
25
operator bool ();
28
26
29
27
friend class Server ;
You can’t perform that action at this time.
0 commit comments