projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
422e60a
)
FlakeId.from_string/1: remove old, un-needed conversion
author
href
<href@random.sh>
Wed, 16 Jan 2019 09:01:15 +0000
(10:01 +0100)
committer
href
<href@random.sh>
Wed, 23 Jan 2019 10:26:36 +0000
(11:26 +0100)
lib/pleroma/flake_id.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/flake_id.ex
b/lib/pleroma/flake_id.ex
index af04fc6a4fbd00ef2eb0e3fa71498e4f81d64717..6b83ee8904690442f8895597d11c1d6d303d42e2 100644
(file)
--- 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(<<id::integer-size(64)>>) 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)>>