Remove unused istream code in test_utils.
Bug: webrtc:8982 Change-Id: I52cf9778581190399de8e2068e4a1cd03c97fb3f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/356140 Auto-Submit: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42569}
This commit is contained in:
parent
3ae2bfa262
commit
7e59d264f1
@ -16,7 +16,6 @@
|
||||
#include <iterator>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <sstream> // no-presubmit-check TODO(webrtc:8982)
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@ -149,22 +148,6 @@ float ComputeSNR(const T* ref, const T* test, size_t length, float* variance) {
|
||||
return snr;
|
||||
}
|
||||
|
||||
// Returns a vector<T> parsed from whitespace delimited values in to_parse,
|
||||
// or an empty vector if the string could not be parsed.
|
||||
template <typename T>
|
||||
std::vector<T> ParseList(absl::string_view to_parse) {
|
||||
std::vector<T> values;
|
||||
|
||||
std::istringstream str( // no-presubmit-check TODO(webrtc:8982)
|
||||
std::string{to_parse});
|
||||
std::copy(
|
||||
std::istream_iterator<T>(str), // no-presubmit-check TODO(webrtc:8982)
|
||||
std::istream_iterator<T>(), // no-presubmit-check TODO(webrtc:8982)
|
||||
std::back_inserter(values));
|
||||
|
||||
return values;
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // MODULES_AUDIO_PROCESSING_TEST_TEST_UTILS_H_
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user