From: href Date: Wed, 16 Jan 2019 09:01:15 +0000 (+0100) Subject: FlakeId.from_string/1: remove old, un-needed conversion X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e36a434b990cfdd650aed1710c55b1f62bd93ccb;p=akkoma FlakeId.from_string/1: remove old, un-needed conversion --- diff --git a/lib/pleroma/flake_id.ex b/lib/pleroma/flake_id.ex index af04fc6a4..6b83ee890 100644 --- a/lib/pleroma/flake_id.ex +++ b/lib/pleroma/flake_id.ex @@ -33,10 +33,6 @@ defmodule Pleroma.FlakeId do def to_string(s), do: s - def from_string(<>) do - <<0::integer-size(64), id::integer-size(64)>> - end - for i <- [-1, 0] do def from_string(unquote(i)), do: <<0::integer-size(128)>> def from_string(unquote(Kernel.to_string(i))), do: <<0::integer-size(128)>>