git ssb

2+

mixmix / ticktack



Commit bb4010a7c9d311409fb0cc0158420c2fb3daba1d

remove/ comment out various unused vars

mix irving committed on 8/17/2017, 4:18:16 AM
Parent: 17b2f7bb97825fb0650e466902418fcf8442c5fd

Files changed

app/page/home.jschanged
app/page/image.jschanged
app/page/threadShow.jschanged
app/page/userShow.jschanged
message/async/publish.jschanged
state/obs.jschanged
app/page/home.jsView
@@ -14,17 +14,17 @@
1414 'state.obs.threads': 'first',
1515 'app.html.threadCard': 'first'
1616 })
1717
18-function toRecpGroup(msg) {
19- //cannocialize
20- return Array.isArray(msg.value.content.repcs) &&
21- msg.value.content.recps.map(function (e) {
22- return (isString(e) ? e : e.link)
23- }).sort().map(function (id) {
24- return id.substring(0, 10)
25- }).join(',')
26-}
18+// function toRecpGroup(msg) {
19+// //cannocialize
20+// return Array.isArray(msg.value.content.repcs) &&
21+// msg.value.content.recps.map(function (e) {
22+// return (isString(e) ? e : e.link)
23+// }).sort().map(function (id) {
24+// return id.substring(0, 10)
25+// }).join(',')
26+// }
2727
2828 exports.create = (api) => {
2929 return nest('app.page.home', function (location) {
3030 // location here can expected to be: { page: 'home'}
app/page/image.jsView
@@ -3,18 +3,15 @@
33
44 exports.gives = nest('app.page.image')
55
66 exports.needs = nest({
7- 'translations.sync.strings': 'first',
87 'about.html.image': 'first',
98 'about.obs.name': 'first',
109 'app.html.thread': 'first',
1110 'blob.sync.url': 'first'
1211 })
1312
1413 exports.create = (api) => {
15- var strings = api.translations.sync.strings()
16-
1714 return nest('app.page.image', function (location) {
1815 return h('Page -image', [
1916 h('div.container', [
2017 h('img', {src: api.blob.sync.url(location.blob || location)})
app/page/threadShow.jsView
@@ -17,9 +17,9 @@
1717 return nest('app.page.threadShow', threadShow)
1818
1919 function threadShow (location) {
2020 // location = a thread (message decorated with replies)
21- const { key: root, replies, channel } = location
21+ const { key: root, channel } = location
2222
2323 const thread = api.app.html.thread(root)
2424
2525 const meta = {
app/page/userShow.jsView
@@ -21,10 +21,8 @@
2121 'translations.sync.strings': 'first',
2222 })
2323
2424 exports.create = (api) => {
25- var strings = api.translations.sync.strings()
26-
2725 return nest('app.page.userShow', userShow)
2826
2927 function userShow (location) {
3028
message/async/publish.jsView
@@ -1,5 +1,4 @@
1-const h = require('mutant/h')
21 const nest = require('depnest')
32
43 exports.needs = nest({
54 'sbot.async.publish': 'first'
state/obs.jsView
@@ -52,10 +52,9 @@
5252 //value recovered from localStorage
5353 initial
5454 )
5555
56- var getting = {}, g = 0, t = 0
57- var maybe = {}
56+ var getting = {}
5857 obs(function (state) {
5958 var effect = state.effect
6059 if(!effect) return
6160

Built with git-ssb-web