Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-upadhyay committed Mar 11, 2012
1 parent 8651edc commit be0abea
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions apropos-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,26 +564,6 @@ spell(sqlite3 *db, char *word)
const char *sqlstr;
int n;
int count;
/*sqlite3_exec(db, "ATTACH DATABASE \':memory:\' AS metadb", NULL, NULL,
&errmsg);
if (errmsg != NULL) {
warnx("%s", errmsg);
free(errmsg);
close_db(db);
exit(EXIT_FAILURE);
}
sqlstr = "CREATE TABLE metadb.dict AS SELECT term, occurrences FROM "
"mandb_aux WHERE col=\'*\' ;"
"CREATE UNIQUE INDEX IF NOT EXISTS metadb.index_term ON "
"dict (term)";
sqlite3_exec(db, sqlstr, NULL, NULL, &errmsg);
if (errmsg != NULL) {
warnx("%s", errmsg);
free(errmsg);
return NULL;
}*/

lower(word);
correct = known_word(db, &word, 1);
Expand Down Expand Up @@ -616,12 +596,6 @@ spell(sqlite3 *db, char *word)
free_list(cand2, count2);
}

/*sqlite3_exec(db, "DETACH DATABASE metadb", NULL, NULL,
&errmsg);
if (errmsg != NULL) {
warnx("%s", errmsg);
free(errmsg);
}*/
return correct;
}

Expand Down

0 comments on commit be0abea

Please sign in to comment.