git ssb

1+

Daan Patchwork / patchwork



Commit 3451510316992d414ec76ba5b29681fe359b7428

Remove unused dependency declarations

These seem to be mostly due to code using the dependencies being moved
to other modules, but the `needs` declarations staying behind. Guess
that's what happens when you have no tool support.
Daan Wynen committed on 2/7/2021, 8:31:23 PM
Parent: 3e1a25c038eb978d89a78469d8653cb915a2d399

Files changed

lib/depject/about/obs.jschanged
lib/depject/channel/html/preview.jschanged
lib/depject/channel/obs/subscribers.jschanged
lib/depject/contact/async.jschanged
lib/depject/contact/html/follow-toggle.jschanged
lib/depject/feed/html/rollup.jschanged
lib/depject/intl/sync/i18n.jschanged
lib/depject/message/async/name.jschanged
lib/depject/message/html/actions.jschanged
lib/depject/message/html/forks.jschanged
lib/depject/message/html/layout/default.jschanged
lib/depject/message/html/layout/mini.jschanged
lib/depject/message/html/metas.jschanged
lib/depject/message/html/references.jschanged
lib/depject/message/html/render/about.jschanged
lib/depject/message/html/render/blog.jschanged
lib/depject/message/html/render/issue.jschanged
lib/depject/page/html/render/all.jschanged
lib/depject/page/html/render/attending-gatherings.jschanged
lib/depject/page/html/render/channel.jschanged
lib/depject/page/html/render/channels.jschanged
lib/depject/page/html/render/gatherings.jschanged
lib/depject/page/html/render/message.jschanged
lib/depject/page/html/render/participating.jschanged
lib/depject/page/html/render/public.jschanged
lib/depject/page/html/render/search.jschanged
lib/depject/page/html/render/settings.jschanged
lib/depject/page/html/render/your-posts.jschanged
lib/depject/profile/async/suggest.jschanged
lib/depject/profile/html/preview.jschanged
lib/depject/sheet/editTags.jschanged
lib/depject/sheet/profiles.jschanged
lib/depject/sheet/tags/renderTaggers.jschanged
lib/depject/sheet/tags/renderTags.jschanged
lib/depject/about/obs.jsView
@@ -8,10 +8,9 @@
88 const MutantPullDict = require('../../mutant-pull-dict')
99
1010 exports.needs = nest({
1111 'sbot.pull.stream': 'first',
12- 'blob.sync.url': 'first',
13- 'keys.sync.id': 'first'
12 + 'blob.sync.url': 'first'
1413 })
1514
1615 exports.gives = nest({
1716 'about.obs': [
lib/depject/channel/html/preview.jsView
@@ -5,10 +5,8 @@
55 const send = require('mutant/send')
66 const normalizeChannel = require('ssb-ref').normalizeChannel
77
88 exports.needs = nest({
9- 'about.obs.name': 'first',
10- 'about.html.image': 'first',
119 'keys.sync.id': 'first',
1210 'app.navigate': 'first',
1311 'intl.sync.i18n': 'first',
1412 'intl.sync.i18n_n': 'first',
lib/depject/channel/obs/subscribers.jsView
@@ -1,9 +1,8 @@
11 const nest = require('depnest')
22 const MutantPullReduce = require('mutant-pull-reduce')
33
44 exports.needs = nest({
5- 'keys.sync.id': 'first',
65 'sbot.pull.stream': 'first'
76 })
87
98 exports.gives = nest('channel.obs.subscribers')
lib/depject/contact/async.jsView
@@ -1,9 +1,8 @@
11 const nest = require('depnest')
22 const ref = require('ssb-ref')
33
44 exports.needs = nest({
5- 'contact.obs.following': 'first',
65 'sbot.async.publish': 'first',
76 'sbot.async.friendsGet': 'first'
87 })
98
lib/depject/contact/html/follow-toggle.jsView
@@ -9,9 +9,8 @@
99 'message.async.publish': 'first',
1010 'sbot.async.publish': 'first',
1111 'contact.obs.states': 'first',
1212 'contact.obs.followers': 'first',
13- 'contact.obs.blockers': 'first',
1413 'contact.obs.ignores': 'first'
1514 })
1615
1716 exports.create = function (api) {
lib/depject/feed/html/rollup.jsView
@@ -23,12 +23,9 @@
2323
2424 exports.needs = nest({
2525 'message.html.canRender': 'first',
2626 'message.html.render': 'first',
27- 'message.sync.unbox': 'first',
2827 'profile.html.person': 'first',
29- 'message.html.link': 'first',
30- 'sbot.async.get': 'first',
3128 'keys.sync.id': 'first',
3229 'intl.sync.i18n': 'first',
3330 'intl.sync.i18n_n': 'first',
3431 'message.html.missing': 'first',
lib/depject/intl/sync/i18n.jsView
@@ -13,12 +13,9 @@
1313 'startsWith'
1414 ])
1515
1616 exports.needs = nest({
17- 'intl.sync.locale': 'first',
18- 'intl.sync.locales': 'reduce',
19- 'settings.obs.get': 'first',
20- 'settings.sync.set': 'first'
17 + 'settings.obs.get': 'first'
2118 })
2219
2320 exports.create = (api) => {
2421 let _locale
lib/depject/message/async/name.jsView
@@ -4,12 +4,10 @@
44 const { resolve, onceTrue } = require('mutant')
55
66 exports.needs = nest({
77 'sbot.async.get': 'first',
8- 'sbot.pull.links': 'first',
98 'message.sync.unbox': 'first',
10- 'about.obs.socialValue': 'first',
11- 'keys.sync.id': 'first'
9 + 'about.obs.socialValue': 'first'
1210 })
1311 exports.gives = nest('message.async.name')
1412
1513 // needs an async version
lib/depject/message/html/actions.jsView
@@ -4,13 +4,11 @@
44
55 exports.needs = nest({
66 'intl.sync.i18n': 'first',
77 'app.navigate': 'first',
8- 'keys.sync.id': 'first',
98 'message.obs.doesLike': 'first',
109 'sbot.async.publish': 'first',
11- 'sheet.editTags': 'first',
12- 'sbot.pull.stream': 'first'
10 + 'sheet.editTags': 'first'
1311 })
1412
1513 exports.gives = nest('message.html.actions')
1614
lib/depject/message/html/forks.jsView
@@ -5,10 +5,9 @@
55
66 exports.needs = nest({
77 'backlinks.obs.forks': 'first',
88 'message.obs': {
9- name: 'first',
10- author: 'first'
9 + name: 'first'
1110 },
1211 'profile.html.person': 'first',
1312 'intl.sync.i18n': 'first'
1413 })
lib/depject/message/html/layout/default.jsView
@@ -5,10 +5,8 @@
55 const timestamp = require('../../../../message/html/timestamp')
66
77 exports.needs = nest({
88 'profile.html.person': 'first',
9- 'message.obs.name': 'first',
10- 'message.obs.author': 'first',
119 'contact.obs.following': 'first',
1210 'keys.sync.id': 'first',
1311 'message.html': {
1412 link: 'first',
lib/depject/message/html/layout/mini.jsView
@@ -5,9 +5,8 @@
55 const timestamp = require('../../../../message/html/timestamp')
66
77 exports.needs = nest({
88 'profile.html.person': 'first',
9- 'message.obs.name': 'first',
109 'contact.obs.following': 'first',
1110 'keys.sync.id': 'first',
1211 'message.html': {
1312 link: 'first',
lib/depject/message/html/metas.jsView
@@ -7,9 +7,8 @@
77 exports.needs = nest({
88 'message.obs.likeCount': 'first',
99 'sheet.profiles': 'first',
1010 'about.obs.name': 'first',
11- 'sbot.pull.stream': 'first',
1211 'intl.sync.i18n': 'first',
1312 'intl.sync.i18n_n': 'first',
1413 'sbot.obs.connection': 'first',
1514 'sheet.tags.render': 'first',
lib/depject/message/html/references.jsView
@@ -4,10 +4,9 @@
44
55 exports.needs = nest({
66 'backlinks.obs.references': 'first',
77 'message.obs': {
8- name: 'first',
9- author: 'first'
8 + name: 'first'
109 },
1110 'profile.html.person': 'first',
1211 'intl.sync.i18n': 'first'
1312 })
lib/depject/message/html/render/about.jsView
@@ -9,9 +9,8 @@
99 'message.html': {
1010 layout: 'first',
1111 markdown: 'first'
1212 },
13- 'keys.sync.id': 'first',
1413 'profile.html.person': 'first',
1514 'about.obs.name': 'first',
1615 'blob.sync.url': 'first',
1716 'intl.sync.i18n': 'first'
lib/depject/message/html/render/blog.jsView
@@ -12,10 +12,9 @@
1212 'about.obs.color': 'first',
1313 'app.navigate': 'first',
1414 'blob.sync.url': 'first',
1515 'message.html.layout': 'first',
16- 'message.html.markdown': 'first',
17- 'sbot.obs.connection': 'first'
16 + 'message.html.markdown': 'first'
1817 })
1918
2019 exports.create = function (api) {
2120 return nest('message.html', {
lib/depject/message/html/render/issue.jsView
@@ -5,9 +5,8 @@
55
66 exports.needs = nest({
77 'message.html': {
88 layout: 'first',
9- link: 'first',
109 markdown: 'first'
1110 }
1211 })
1312
lib/depject/page/html/render/all.jsView
@@ -4,9 +4,8 @@
44 exports.needs = nest({
55 'sbot.pull.resumeStream': 'first',
66 'sbot.pull.stream': 'first',
77 'message.html.compose': 'first',
8- 'message.async.publish': 'first',
98 'feed.html.rollup': 'first',
109 'intl.sync.i18n': 'first'
1110 })
1211
lib/depject/page/html/render/attending-gatherings.jsView
@@ -5,9 +5,8 @@
55 'feed.html.rollup': 'first',
66 'sbot.pull.resumeStream': 'first',
77 'app.navigate': 'first',
88 'sbot.pull.stream': 'first',
9- 'contact.obs.following': 'first',
109 'intl.sync.i18n': 'first'
1110 })
1211
1312 exports.gives = nest('page.html.render')
lib/depject/page/html/render/channel.jsView
@@ -8,10 +8,8 @@
88 'feed.html.rollup': 'first',
99 'feed.html.followWarning': 'first',
1010 'sbot.pull.resumeStream': 'first',
1111 'sbot.pull.stream': 'first',
12- 'sbot.pull.log': 'first',
13- 'message.async.publish': 'first',
1412 'keys.sync.id': 'first',
1513 'intl.sync.i18n': 'first',
1614 'settings.obs.get': 'first',
1715 'profile.obs.contact': 'first'
lib/depject/page/html/render/channels.jsView
@@ -1,15 +1,13 @@
11 const nest = require('depnest')
22 const { h, when, computed, map } = require('mutant')
33
44 exports.needs = nest({
5- 'message.async.publish': 'first',
65 'keys.sync.id': 'first',
76 'channel.obs': {
87 subscribed: 'first',
98 recent: 'first'
10- },
11- 'intl.sync.i18n': 'first'
9 + }
1210 })
1311
1412 exports.gives = nest('page.html.render')
1513
lib/depject/page/html/render/gatherings.jsView
@@ -5,10 +5,8 @@
55 'feed.html.rollup': 'first',
66 'sbot.pull.resumeStream': 'first',
77 'sbot.pull.stream': 'first',
88 'gathering.sheet.edit': 'first',
9- 'keys.sync.id': 'first',
10- 'contact.obs.following': 'first',
119 'intl.sync.i18n': 'first'
1210 })
1311
1412 exports.gives = nest('page.html.render')
lib/depject/page/html/render/message.jsView
@@ -15,9 +15,8 @@
1515 'message.obs.name': 'first',
1616 'message.html.render': 'first',
1717 'message.html.compose': 'first',
1818 'message.html.missing': 'first',
19- 'message.html.metas': 'first',
2019 'profile.html.person': 'first',
2120 'sbot.async.get': 'first',
2221 'intl.sync.i18n': 'first',
2322 'sbot.obs.connection': 'first'
lib/depject/page/html/render/participating.jsView
@@ -3,10 +3,8 @@
33
44 exports.needs = nest({
55 'sbot.pull.resumeStream': 'first',
66 'sbot.pull.stream': 'first',
7- 'message.html.compose': 'first',
8- 'message.async.publish': 'first',
97 'feed.html.rollup': 'first',
108 'keys.sync.id': 'first',
119 'intl.sync.i18n': 'first',
1210 'settings.obs.get': 'first'
lib/depject/page/html/render/public.jsView
@@ -20,20 +20,17 @@
2020 'about.obs.name': 'first',
2121 'invite.sheet': 'first',
2222
2323 'message.html.compose': 'first',
24- 'message.async.publish': 'first',
2524 'progress.html.peer': 'first',
2625
2726 'feed.html.followWarning': 'first',
2827 'feed.html.followerWarning': 'first',
2928 'feed.html.rollup': 'first',
3029 'profile.obs.recentlyUpdated': 'first',
3130 'profile.obs.contact': 'first',
3231 'contact.obs.following': 'first',
33- 'contact.obs.followers': 'first',
3432 'contact.obs.blocking': 'first',
35- 'contact.async.follow': 'first',
3633 'channel.obs': {
3734 subscribed: 'first',
3835 recent: 'first'
3936 },
lib/depject/page/html/render/search.jsView
@@ -10,9 +10,8 @@
1010 const escapeStringRegexp = require('escape-string-regexp')
1111
1212 exports.needs = nest({
1313 'sbot.pull.stream': 'first',
14- 'keys.sync.id': 'first',
1514 'message.html.render': 'first',
1615 'intl.sync.i18n': 'first',
1716 'sbot.pull.backlinks': 'first'
1817 })
lib/depject/page/html/render/settings.jsView
@@ -5,9 +5,8 @@
55 const themeNames = Object.keys(require('../../../../../styles'))
66
77 exports.needs = nest({
88 'settings.obs.get': 'first',
9- 'settings.sync.set': 'first',
109 'intl.sync.locales': 'first',
1110 'intl.sync.i18n': 'first',
1211 'intl.sync.localeNames': 'first'
1312 })
lib/depject/page/html/render/your-posts.jsView
@@ -3,10 +3,8 @@
33
44 exports.needs = nest({
55 'sbot.pull.resumeStream': 'first',
66 'sbot.pull.stream': 'first',
7- 'message.html.compose': 'first',
8- 'message.async.publish': 'first',
97 'feed.html.rollup': 'first',
108 'keys.sync.id': 'first',
119 'intl.sync.i18n': 'first'
1210 })
lib/depject/profile/async/suggest.jsView
@@ -3,16 +3,9 @@
33 const { onceTrue } = require('mutant')
44 const fallbackImageUrl = 'data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='
55
66 exports.needs = nest({
7- 'profile.obs.recentlyUpdated': 'first',
8- 'profile.async.avatar': 'first',
9- 'contact.obs.following': 'first',
10- 'about.obs.name': 'first',
11- 'about.obs.imageUrl': 'first',
127 'blob.sync.url': 'first',
13- 'intl.sync.startsWith': 'first',
14- 'keys.sync.id': 'first',
158 'sbot.obs.connection': 'first'
169 })
1710
1811 exports.gives = nest('profile.async.suggest')
lib/depject/profile/html/preview.jsView
@@ -9,9 +9,8 @@
99 exports.needs = nest({
1010 'about.obs.name': 'first',
1111 'about.obs.description': 'first',
1212 'about.html.image': 'first',
13- 'keys.sync.id': 'first',
1413 'app.navigate': 'first',
1514 'intl.sync.i18n': 'first',
1615 'intl.sync.i18n_n': 'first',
1716 'sheet.profiles': 'first',
lib/depject/sheet/editTags.jsView
@@ -11,9 +11,8 @@
1111
1212 exports.gives = nest('sheet.editTags')
1313
1414 exports.needs = nest({
15- 'about.obs.name': 'first',
1615 'keys.sync.id': 'first',
1716 'sbot.obs.connection': 'first',
1817 'tag.async.suggest': 'first',
1918 'tag.html.tag': 'first',
lib/depject/sheet/profiles.jsView
@@ -3,10 +3,8 @@
33 const catchLinks = require('../../catch-links')
44 const displaySheet = require('../../sheet/display')
55
66 exports.needs = nest({
7- 'keys.sync.id': 'first',
8- 'contact.obs.following': 'first',
97 'contact.html.followToggle': 'first',
108 'profile.obs.rank': 'first',
119 'about.html.image': 'first',
1210 'about.obs.name': 'first',
lib/depject/sheet/tags/renderTaggers.jsView
@@ -6,9 +6,8 @@
66 'about.html.image': 'first',
77 'about.obs.name': 'first',
88 'contact.html.followToggle': 'first',
99 'intl.sync.i18n': 'first',
10- 'keys.sync.id': 'first',
1110 'profile.obs.rank': 'first',
1211 'sbot.obs.connection': 'first'
1312 })
1413
lib/depject/sheet/tags/renderTags.jsView
@@ -2,10 +2,9 @@
22 const nest = require('depnest')
33
44 exports.needs = nest({
55 'about.obs.name': 'first',
6- 'intl.sync.i18n': 'first',
7- 'keys.sync.id': 'first'
6 + 'intl.sync.i18n': 'first'
87 })
98
109 exports.gives = nest('sheet.tags.renderTags')
1110

Built with git-ssb-web