mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
HttpUtil has moved to wpiutil; use it. (#92)
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include <llvm/raw_ostream.h>
|
||||
#include <support/raw_istream.h>
|
||||
|
||||
#include "HttpUtil.h"
|
||||
#include "Log.h"
|
||||
|
||||
namespace cs {
|
||||
@@ -44,9 +43,8 @@ static llvm::StringRef GetUsbNameFromFile(int vendor, int product,
|
||||
llvm::SmallString<128> lineBuf;
|
||||
bool foundVendor = false;
|
||||
for (;;) {
|
||||
bool error = false;
|
||||
auto line = ReadLine(is, lineBuf, 4096, &error);
|
||||
if (error) break;
|
||||
auto line = is.getline(lineBuf, 4096);
|
||||
if (is.has_error()) break;
|
||||
|
||||
if (line.empty()) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user