aboutsummaryrefslogtreecommitdiff
path: root/shard
diff options
context:
space:
mode:
Diffstat (limited to 'shard')
-rw-r--r--shard/lib/app/directory.ex8
-rw-r--r--shard/lib/app/identity.ex13
2 files changed, 3 insertions, 18 deletions
diff --git a/shard/lib/app/directory.ex b/shard/lib/app/directory.ex
index a15de21..f4b5a0b 100644
--- a/shard/lib/app/directory.ex
+++ b/shard/lib/app/directory.ex
@@ -200,12 +200,4 @@ defmodule SApp.Directory do
def rm_file(pid, name) do
GenServer.call(pid, {:rm_file, name})
end
-
- @doc"""
- Returns the friends directory of a user
- """
- def friends_dir(pk) do
- manifest = %Manifest{name: "friends", owner: pk, public: false}
- Shard.Manager.find_or_start manifest
- end
end
diff --git a/shard/lib/app/identity.ex b/shard/lib/app/identity.ex
index 468906f..69bed93 100644
--- a/shard/lib/app/identity.ex
+++ b/shard/lib/app/identity.ex
@@ -79,16 +79,9 @@ defmodule SApp.Identity do
end
def handle_cast(:send_deps, state) do
- default_deps =
- if Shard.Keys.have_sk?(state.pk) do
- [
- %SApp.Directory.Manifest{owner: state.pk, public: false, name: "friends"}
- ]
- else
- []
- end
-
- GenServer.cast(Shard.Manager, {:dep_list, state.id, default_deps})
+ # TODO: collections
+
+ GenServer.cast(Shard.Manager, {:dep_list, state.id, []})
{:noreply, state}
end