mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
clean: remove useless code
This commit is contained in:
parent
ad087b1031
commit
0536b75761
|
@ -516,15 +516,12 @@ void EpwingDictionary::getArticleText( uint32_t articleAddress, QString & headwo
|
|||
|
||||
class EpwingArticleRequest: public Dictionary::DataRequest
|
||||
{
|
||||
friend class EpwingArticleRequestRunnable;
|
||||
|
||||
wstring word;
|
||||
vector< wstring > alts;
|
||||
EpwingDictionary & dict;
|
||||
bool ignoreDiacritics;
|
||||
|
||||
QAtomicInt isCancelled;
|
||||
QSemaphore hasExited;
|
||||
QFuture< void > f;
|
||||
|
||||
public:
|
||||
|
@ -535,8 +532,6 @@ public:
|
|||
word( word_ ), alts( alts_ ), dict( dict_ ), ignoreDiacritics( ignoreDiacritics_ )
|
||||
{
|
||||
f = QtConcurrent::run( [ this ]() { this->run(); } );
|
||||
// QThreadPool::globalInstance()->start(
|
||||
// new EpwingArticleRequestRunnable( *this, hasExited ) );
|
||||
}
|
||||
|
||||
void run();
|
||||
|
@ -554,7 +549,6 @@ public:
|
|||
{
|
||||
isCancelled.ref();
|
||||
f.waitForFinished();
|
||||
// hasExited.acquire();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue