public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] proj/portage-utils:master commit in: /
@ 2015-11-26 10:39 99% Mike Frysinger
  0 siblings, 0 replies; 1+ results
From: Mike Frysinger @ 2015-11-26 10:39 UTC (permalink / raw
  To: gentoo-commits

commit:     e5bc6a0ac189c60e2329a6b8eb00ffbddb8d015d
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 26 10:30:18 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Nov 26 10:30:18 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=e5bc6a0a

qsearch: drop dead testing code

 qsearch.c | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/qsearch.c b/qsearch.c
index 05a54e6..baaed37 100644
--- a/qsearch.c
+++ b/qsearch.c
@@ -68,24 +68,6 @@ int qsearch_main(int argc, char **argv)
 			qsearch_usage(EXIT_FAILURE);
 		search_me = argv[optind];
 	}
-#ifdef TESTING
-	/* FIXME: hardcoded */
-	if ((search_cache == CACHE_EBUILD) && (access("/usr/portage/.qsearch.x", R_OK) == 0)) {
-		if ((fp = fopen("/usr/portage/.qsearch.x", "r")) != NULL) {
-			search_len = strlen(search_me);
-			while (fgets(buf, sizeof(buf), fp) != NULL) {
-				if (strlen(buf) <= search_len)
-					continue;
-				/* add regexp, color highlighting and basename checks */
-				if (strncmp(buf, search_me, search_len) == 0) {
-					fputs(buf, stdout);
-				}
-			}
-			fclose(fp);
-			return 0;
-		}
-	}
-#endif
 	last[0] = 0;
 	fp = fopen(initialize_flat(search_cache, false), "r");
 	if (!fp)


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-11-26 10:39 99% [gentoo-commits] proj/portage-utils:master commit in: / Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox