couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [19/19] git commit: Remove unused code
Date Mon, 11 Feb 2013 13:51:16 GMT
Updated Branches:
  refs/heads/nodejs_couchdb e0278596e -> 5f1f41832


Remove unused code


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

Branch: refs/heads/nodejs_couchdb
Commit: 5f1f41832effe3ec94306ac0f2931d58a91c1888
Parents: 663792c
Author: Jason Smith (work) <jhs@iriscouch.com>
Authored: Mon Feb 11 07:47:44 2013 +0000
Committer: Jason Smith (work) <jhs@iriscouch.com>
Committed: Mon Feb 11 07:47:44 2013 +0000

----------------------------------------------------------------------
 src/couchdb/couch_httpd_debug.erl |   43 --------------------------------
 1 files changed, 0 insertions(+), 43 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/5f1f4183/src/couchdb/couch_httpd_debug.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_httpd_debug.erl b/src/couchdb/couch_httpd_debug.erl
index 8fa7686..c100910 100644
--- a/src/couchdb/couch_httpd_debug.erl
+++ b/src/couchdb/couch_httpd_debug.erl
@@ -116,49 +116,6 @@ request_to_iolist(#httpd{method=Method, mochi_req=MochiReq}) -> ok
     , [Action, "\r\n", Headers, "\r\n"]
     .
 
-%% Login handler with Browser ID.
-%handle_id_req(#httpd{method='POST'}=Req) -> ok
-%    , case couch_config:get("browserid", "enabled")
-%        of "true" -> ok
-%            , case couch_config:get("browserid", "audience", undefined)
-%                of undefined -> ok
-%                    , throw({error, no_browserid_audience})
-%                ; Audience -> ok
-%                    , handle_id_req(enabled, Audience, Req)
-%                end
-%        ; _ -> ok
-%            % Browserid is disabled in the config.
-%            , throw({error, browserid_not_enabled})
-%        end
-%    ;
-%
-%handle_id_req(_Req) ->
-%    % Send 405
-%    not_implemented.
-%
-%handle_id_req(enabled, Audience, #httpd{method='POST', mochi_req=MochiReq}=Req) ->
-%    ReqBody = MochiReq:recv_body(),
-%    Form = case MochiReq:get_primary_header_value("content-type") of
-%        % content type should be json
-%        "application/x-www-form-urlencoded" ++ _ ->
-%            mochiweb_util:parse_qs(ReqBody);
-%        "application/json" ++ _ ->
-%            {Pairs} = ?JSON_DECODE(ReqBody),
-%            lists:map(fun({Key, Value}) ->
-%              {?b2l(Key), ?b2l(Value)}
-%            end, Pairs);
-%        _ ->
-%            []%couch_httpd:send_json(Req, 406, {error, method_not_allowed})
-%    end,
-%    Assertion = couch_util:get_value("assertion", Form, ""),
-%    case verify_id(Assertion, Audience) of
-%    {error, _Reason} ->
-%        % Send client an error response, couch_util:send_err ...
-%        not_implemented;
-%    {ok, Verified_obj} -> ok
-%        , send_good_id(Req, Verified_obj)
-%    end.
-
 
 %
 % Utilities


Mime
View raw message