/ Check-in [defc762d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove the unused fts5BlobCompare() routine.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: defc762dd11144402abd591278819768a080d5ea
User & Date: drh 2016-02-11 21:53:57
Context
2016-02-11
21:55
Remove the unexplained extra 3.0 cost factor for the B-tree sorting that is done to implement DISTINCT in the absence of an index to help. check-in: 52571991 user: drh tags: trunk
21:53
Remove the unused fts5BlobCompare() routine. check-in: defc762d user: drh tags: trunk
18:18
Fix another unused variable warning in fts5 code. check-in: 61b4c120 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts5/fts5_index.c.

   603    603   */
   604    604   static int fts5BufferCompare(Fts5Buffer *pLeft, Fts5Buffer *pRight){
   605    605     int nCmp = MIN(pLeft->n, pRight->n);
   606    606     int res = memcmp(pLeft->p, pRight->p, nCmp);
   607    607     return (res==0 ? (pLeft->n - pRight->n) : res);
   608    608   }
   609    609   
   610         -#ifdef SQLITE_DEBUG
   611         -static int fts5BlobCompare(
   612         -  const u8 *pLeft, int nLeft, 
   613         -  const u8 *pRight, int nRight
   614         -){
   615         -  int nCmp = MIN(nLeft, nRight);
   616         -  int res = memcmp(pLeft, pRight, nCmp);
   617         -  return (res==0 ? (nLeft - nRight) : res);
   618         -}
   619         -#endif
   620         -
   621    610   static int fts5LeafFirstTermOff(Fts5Data *pLeaf){
   622    611     int ret;
   623    612     fts5GetVarint32(&pLeaf->p[pLeaf->szLeaf], ret);
   624    613     return ret;
   625    614   }
   626    615   
   627    616   /*