aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2022-01-05 11:36:47 -0600
committerAlex Gleason <alex@alexgleason.me>2022-01-05 11:36:47 -0600
commitf9ae674a579b01849f2c5b757030c8ca8292e815 (patch)
treee5e6c6f309f03e584b7c8d049917df5b4aad1cc5 /lib
parent26b0cbfd060abd6f158aa2491dc984165d0a1d37 (diff)
downloadpleroma-f9ae674a579b01849f2c5b757030c8ca8292e815.tar.gz
Remove unused ObjectId.shift_id/2
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/migration_helper/object_id.ex10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/pleroma/migration_helper/object_id.ex b/lib/pleroma/migration_helper/object_id.ex
index 44af99c8d..3cc487523 100644
--- a/lib/pleroma/migration_helper/object_id.ex
+++ b/lib/pleroma/migration_helper/object_id.ex
@@ -36,16 +36,6 @@ defmodule Pleroma.MigrationHelper.ObjectId do
|> Repo.update_all(set: [{field, new_id}])
end
- @doc "Shift a FlakeId by N places."
- def shift_id(flake_id, n) when is_integer(n) do
- flake_id
- |> FlakeId.from_string()
- |> FlakeId.to_integer()
- |> Kernel.+(n)
- |> FlakeId.from_integer()
- |> FlakeId.to_string()
- end
-
@doc "Generate a FlakeId from a datetime."
@spec flake_from_time(NaiveDateTime.t()) :: flake_id :: String.t()
def flake_from_time(%NaiveDateTime{} = dt) do