Commit bb4010a7c9d311409fb0cc0158420c2fb3daba1d
remove/ comment out various unused vars
mix irving committed on 8/17/2017, 4:18:16 AMParent: 17b2f7bb97825fb0650e466902418fcf8442c5fd
Files changed
app/page/home.js | changed |
app/page/image.js | changed |
app/page/threadShow.js | changed |
app/page/userShow.js | changed |
message/async/publish.js | changed |
state/obs.js | changed |
app/page/home.js | ||
---|---|---|
@@ -14,17 +14,17 @@ | ||
14 | 14 | 'state.obs.threads': 'first', |
15 | 15 | 'app.html.threadCard': 'first' |
16 | 16 | }) |
17 | 17 | |
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 | +// } | |
27 | 27 | |
28 | 28 | exports.create = (api) => { |
29 | 29 | return nest('app.page.home', function (location) { |
30 | 30 | // location here can expected to be: { page: 'home'} |
app/page/image.js | ||
---|---|---|
@@ -3,18 +3,15 @@ | ||
3 | 3 | |
4 | 4 | exports.gives = nest('app.page.image') |
5 | 5 | |
6 | 6 | exports.needs = nest({ |
7 | - 'translations.sync.strings': 'first', | |
8 | 7 | 'about.html.image': 'first', |
9 | 8 | 'about.obs.name': 'first', |
10 | 9 | 'app.html.thread': 'first', |
11 | 10 | 'blob.sync.url': 'first' |
12 | 11 | }) |
13 | 12 | |
14 | 13 | exports.create = (api) => { |
15 | - var strings = api.translations.sync.strings() | |
16 | - | |
17 | 14 | return nest('app.page.image', function (location) { |
18 | 15 | return h('Page -image', [ |
19 | 16 | h('div.container', [ |
20 | 17 | h('img', {src: api.blob.sync.url(location.blob || location)}) |
app/page/threadShow.js | ||
---|---|---|
@@ -17,9 +17,9 @@ | ||
17 | 17 | return nest('app.page.threadShow', threadShow) |
18 | 18 | |
19 | 19 | function threadShow (location) { |
20 | 20 | // location = a thread (message decorated with replies) |
21 | - const { key: root, replies, channel } = location | |
21 | + const { key: root, channel } = location | |
22 | 22 | |
23 | 23 | const thread = api.app.html.thread(root) |
24 | 24 | |
25 | 25 | const meta = { |
app/page/userShow.js | ||
---|---|---|
@@ -21,10 +21,8 @@ | ||
21 | 21 | 'translations.sync.strings': 'first', |
22 | 22 | }) |
23 | 23 | |
24 | 24 | exports.create = (api) => { |
25 | - var strings = api.translations.sync.strings() | |
26 | - | |
27 | 25 | return nest('app.page.userShow', userShow) |
28 | 26 | |
29 | 27 | function userShow (location) { |
30 | 28 |
Built with git-ssb-web