From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1BF551388C1 for ; Thu, 26 Nov 2015 10:39:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 798D821C10A; Thu, 26 Nov 2015 10:39:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 11EFA21C107 for ; Thu, 26 Nov 2015 10:39:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2F17F340754 for ; Thu, 26 Nov 2015 10:39:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E7C25F57 for ; Thu, 26 Nov 2015 10:39:24 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1448533818.e5bc6a0ac189c60e2329a6b8eb00ffbddb8d015d.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qsearch.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: e5bc6a0ac189c60e2329a6b8eb00ffbddb8d015d X-VCS-Branch: master Date: Thu, 26 Nov 2015 10:39:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5720fda7-ed39-4317-936b-d51f69ff9608 X-Archives-Hash: dd1b1d2f67c3b1a9f2e39c14c062966c commit: e5bc6a0ac189c60e2329a6b8eb00ffbddb8d015d Author: Mike Frysinger gentoo org> AuthorDate: Thu Nov 26 10:30:18 2015 +0000 Commit: Mike Frysinger gentoo 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)