mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-18 07:32:50 +00:00
FlakeId.from_string/1: remove old, un-needed conversion
This commit is contained in:
parent
422e60ad76
commit
e36a434b99
1 changed files with 0 additions and 4 deletions
|
@ -33,10 +33,6 @@ defmodule Pleroma.FlakeId do
|
||||||
|
|
||||||
def to_string(s), do: s
|
def to_string(s), do: s
|
||||||
|
|
||||||
def from_string(<<id::integer-size(64)>>) do
|
|
||||||
<<0::integer-size(64), id::integer-size(64)>>
|
|
||||||
end
|
|
||||||
|
|
||||||
for i <- [-1, 0] do
|
for i <- [-1, 0] do
|
||||||
def from_string(unquote(i)), do: <<0::integer-size(128)>>
|
def from_string(unquote(i)), do: <<0::integer-size(128)>>
|
||||||
def from_string(unquote(Kernel.to_string(i))), do: <<0::integer-size(128)>>
|
def from_string(unquote(Kernel.to_string(i))), do: <<0::integer-size(128)>>
|
||||||
|
|
Loading…
Reference in a new issue