From c93068705540983a229248488bd1c654273fe287 Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Sat, 8 Oct 2022 21:02:52 +0800 Subject: [PATCH] xapian indexisold function adjusted --- dictionary.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/dictionary.cc b/dictionary.cc index db9d0a35..09ece016 100644 --- a/dictionary.cc +++ b/dictionary.cc @@ -572,23 +572,13 @@ bool needToRebuildIndex( vector< string > const & dictionaryFiles, if(d.exists()){ d.removeRecursively(); } +#endif QFileInfo fileInfo( FsEncoding::decode( indexFile.c_str() ) ); if ( !fileInfo.exists() ) return true; return fileInfo.lastModified().toSecsSinceEpoch() < lastModified; -#else - QFileInfo fileInfo( FsEncoding::decode( indexFile.c_str() ) ); - - if ( fileInfo.exists()&&fileInfo.isFile() ) - { - QFile::remove(FsEncoding::decode( indexFile.c_str() )); - return true; - } - - return false; -#endif } string getFtsSuffix(){