]> git.lyx.org Git - lyx.git/blobdiff - src/support/mythes/mythes.cxx
Merge branch 'master' of git.lyx.org:lyx
[lyx.git] / src / support / mythes / mythes.cxx
index e3887610968daf23abd27afaff2278c3bd7dfbdc..c5305803844ce5bda3835caaff0151d6d403707d 100644 (file)
@@ -174,9 +174,6 @@ int MyThes::Lookup(const char * pText, int len, mentry** pme)
     // handle the case of missing file or file related errors
     if (! pdfile) return 0;
 
-    // handle the case if empty word list
-    if (nw <= 0) return 0;
-
     long offset = 0;
 
     /* copy search word and make sure null terminated */
@@ -340,7 +337,6 @@ int MyThes::readLine(FILE * pf, char * buf, int nc)
 int MyThes::binsearch(char * sw, char* list[], int nlst) 
 {
     int lp, up, mp, j, indx;
-    if (0==nlst) return -1;
     lp = 0;
     up = nlst-1;
     indx = -1;