From 7f94095f3e2be7d81842676615baa361138d2b81 Mon Sep 17 00:00:00 2001 From: Adam Millerchip Date: Thu, 5 Sep 2019 00:37:46 +0900 Subject: [PATCH] Remove unused sign function. --- lib/line_bot/validator_plug.ex | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/line_bot/validator_plug.ex b/lib/line_bot/validator_plug.ex index 5566c3f..f8aa738 100644 --- a/lib/line_bot/validator_plug.ex +++ b/lib/line_bot/validator_plug.ex @@ -46,12 +46,4 @@ defmodule LineBot.ValidatorPlug do |> send_resp(:forbidden, "Signature Invalid") |> halt end - - @doc """ - A helper for local debugging. Produces a valid signature for the supplied `body`, - which can be used in the `X-Line-Signature` header. - """ - def sign(body) do - :crypto.hmac(:sha256, Application.get_env(:line_bot, :client_secret), body) |> Base.encode64() - end end