Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
(don't need m/r urlencode now that keys are base64-encoded)
  • Loading branch information
beerriot committed Jul 1, 2010
1 parent 7380062 commit 44c897d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions apps/wriaki/src/article_history.erl
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ merge_links(Obj, Acc) ->
<<"function(a,b) { return b[2]-a[2]; }\n">>,
<<"); }">>])).

-define(RE_URLENCODE,
iolist_to_binary(
[<<"function(v) {\n">>,
<<"return v.map(\n">>,
<<"function(v) { return [v[0], encodeURIComponent(v[1]), v[2]]; }\n">>,
<<"); }">>])).

-define(SUMMARY_EXTRACTION,
iolist_to_binary(
[<<"function(v) {\n">>,
Expand All @@ -99,6 +92,5 @@ get_version_summaries(ArticleKey) ->
[{?B_HISTORY, ArticleKey}],
[{link, <<"archive">>, '_', false},
%%%{reduce, {jsanon, ?TIME_ORDER}, <<>>, false}, %TODO: paging
%%{reduce, {jsanon, ?RE_URLENCODE}, <<>>, false},
{map, {jsanon, ?SUMMARY_EXTRACTION}, <<>>, true}]),
{ok, Results}.

0 comments on commit 44c897d

Please sign in to comment.