Curl abstraction cleanup

This commit is contained in:
Anton Thomasson 2021-11-20 10:32:18 +01:00
parent 6b11d16bfc
commit 4336dd6d7b
2 changed files with 0 additions and 11 deletions

View file

@ -3,8 +3,6 @@
CurlRequester::CurlRequester(QUrl addr) : _addr(addr), _canWrite(1), _canRead(), _reading(false), _done(false), _dest(nullptr), _size(0), _offset(0), _performer(addr, this)
{
connect(&_performer, &CurlWorker::done, this, &CurlRequester::done);
_performer.start();
}
@ -77,8 +75,3 @@ size_t CurlRequester::requestWrite(char* dest, size_t size)
}
return actualSize;
}
void CurlRequester::done(CURLcode)
{
}

View file

@ -26,13 +26,9 @@ public:
bool write(const char *data, size_t size);
size_t requestWrite(char* dest, size_t size);
public slots:
void done(CURLcode);
private:
QUrl _addr;
bool _open;
QSemaphore _canWrite;
QSemaphore _canRead;