Skip to content

Commit 58cdc16

Browse files
committed
cleanup StreamCopy
1 parent 674acdd commit 58cdc16

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/AudioTools/StreamCopy.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ class StreamCopyT {
8282
LOGI("buffer_size=%d",buffer_size);
8383
}
8484

85+
/// Provides a pointer to the copy source. Can be used to check if the source is defined.
8586
Stream *getFrom(){
8687
return from;
8788
}
8889

90+
/// Provides a pointer to the copy target. Can be used to check if the target is defined.
8991
Print *getTo() {
9092
return to;
9193
}
@@ -375,10 +377,6 @@ class StreamCopy : public StreamCopyT<uint8_t> {
375377
return StreamCopyT<uint8_t>::copy();
376378
}
377379

378-
/// available bytes of the data source
379-
int available() {
380-
return from == nullptr ? 0 : from->available();
381-
}
382380
};
383381

384382
} // Namespace

0 commit comments

Comments
 (0)