Remove _search handler

Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/2ef6d47f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/2ef6d47f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/2ef6d47f

Branch: refs/heads/import
Commit: 2ef6d47ff3b21ac417b8d9b8614c08e0c42a4aec
Parents: 47fd22f
Author: Robert Newson <[email protected]>
Authored: Tue Mar 5 14:43:51 2013 -0600
Committer: Robert Newson <[email protected]>
Committed: Tue Mar 5 20:18:08 2013 -0600

----------------------------------------------------------------------
 src/chttpd.erl          | 3 +--
 src/chttpd_external.erl | 4 ----
 2 files changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/2ef6d47f/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index d104811..290d7c6 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -358,8 +358,7 @@ db_url_handlers() ->
         {<<"_compact">>,        fun chttpd_db:handle_compact_req/2},
         {<<"_design">>,         fun chttpd_db:handle_design_req/2},
         {<<"_temp_view">>,      fun chttpd_view:handle_temp_view_req/2},
-        {<<"_changes">>,        fun chttpd_db:handle_changes_req/2},
-        {<<"_search">>,         fun chttpd_external:handle_search_req/2}
+        {<<"_changes">>,        fun chttpd_db:handle_changes_req/2}
     ].
 
 design_url_handlers() ->

http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/2ef6d47f/src/chttpd_external.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_external.erl b/src/chttpd_external.erl
index e24d216..4d07059 100644
--- a/src/chttpd_external.erl
+++ b/src/chttpd_external.erl
@@ -15,15 +15,11 @@
 -export([handle_external_req/2, handle_external_req/3]).
 -export([send_external_response/2, json_req_obj/2, json_req_obj/3]).
 -export([default_or_content_type/2, parse_external_response/1]).
--export([handle_search_req/2]).
 
 -import(chttpd,[send_error/4]).
 
 -include_lib("couch/include/couch_db.hrl").
 
-handle_search_req(Req, Db) ->
-    process_external_req(Req, Db, <<"search">>).
-
 % handle_external_req/2
 % for the old type of config usage:
 % _external = {chttpd_external, handle_external_req}

Reply via email to