A platform for community discussion. Free, open, simple.
clean up unused code
Vinoth Kannan65caf04ddc3b
diff --git a/app/assets/javascripts/discourse/routes/user-topic-list.js.es6 b/app/assets/javascripts/discourse/routes/user-topic-list.js.es6index 3d62ae91deb..c7bd8ed1477 100644--- a/app/assets/javascripts/discourse/routes/user-topic-list.js.es6+++ b/app/assets/javascripts/discourse/routes/user-topic-list.js.es6@@ -11,8 +11,7 @@ export default Discourse.Route.extend(ViewingActionType, {this.controllerFor("user-activity").set("userActionType", userActionType);this.controllerFor("user-topics-list").setProperties({model,- hideCategory: false,- showParticipants: false+ hideCategory: false});}});diff --git a/app/assets/javascripts/discourse/templates/components/basic-topic-list.hbs b/app/assets/javascripts/discourse/templates/components/basic-topic-list.hbsindex ec15b78c9b5..d1d105121ef 100644--- a/app/assets/javascripts/discourse/templates/components/basic-topic-list.hbs+++ b/app/assets/javascripts/discourse/templates/components/basic-topic-list.hbs@@ -10,8 +10,7 @@{{/if}}{{#if topics}}- {{topic-list showParticipants=showParticipants- showPosters=showPosters+ {{topic-list showPosters=showPostershideCategory=hideCategorytopics=topicsexpandExcerpts=expandExcerptsdiff --git a/app/assets/javascripts/discourse/templates/components/topic-list.hbs b/app/assets/javascripts/discourse/templates/components/topic-list.hbsindex bcdbf0123cd..46e05f4e4d6 100644--- a/app/assets/javascripts/discourse/templates/components/topic-list.hbs+++ b/app/assets/javascripts/discourse/templates/components/topic-list.hbs@@ -7,7 +7,6 @@showPosters=showPostersshowLikes=showLikesshowOpLikes=showOpLikes- showParticipants=showParticipantsorder=orderascending=ascendingsortable=sortable@@ -35,7 +34,6 @@showTopicPostBadges=showTopicPostBadgeshideCategory=hideCategoryshowPosters=showPosters- showParticipants=showParticipantsshowLikes=showLikesshowOpLikes=showOpLikesexpandGloballyPinned=expandGloballyPinneddiff --git a/app/assets/javascripts/discourse/templates/list/topic-list-item.raw.hbs b/app/assets/javascripts/discourse/templates/list/topic-list-item.raw.hbsindex ab0e1e31484..6b6b7b2af14 100644--- a/app/assets/javascripts/discourse/templates/list/topic-list-item.raw.hbs+++ b/app/assets/javascripts/discourse/templates/list/topic-list-item.raw.hbs@@ -44,10 +44,6 @@{{raw "list/posts-count-column" topic=topic}}-{{#if showParticipants}}- {{raw "list/posters-column" posters=topic.participants}}-{{/if}}-{{#if showLikes}}<td class="num likes">{{#if hasLikes}}diff --git a/app/assets/javascripts/discourse/templates/mobile/components/basic-topic-list.hbs b/app/assets/javascripts/discourse/templates/mobile/components/basic-topic-list.hbsindex 01a640c1591..2c5eb2f4d5c 100644--- a/app/assets/javascripts/discourse/templates/mobile/components/basic-topic-list.hbs+++ b/app/assets/javascripts/discourse/templates/mobile/components/basic-topic-list.hbs@@ -46,13 +46,6 @@{{category-link t.category}}</div>{{/unless}}- {{#if showParticipants}}- <div class='participants'>- {{#each participants as |p|}}- <a href="{{unbound p.user.path}}" class="{{unbound p.extras}}">{{avatar p usernamePath="user.username" imageSize="small"}}</a>- {{/each}}- </div>- {{/if}}<div class="clearfix"></div></div></td>diff --git a/app/assets/javascripts/discourse/templates/topic-list-header.raw.hbs b/app/assets/javascripts/discourse/templates/topic-list-header.raw.hbsindex 54a7de63eb2..e3468a1c950 100644--- a/app/assets/javascripts/discourse/templates/topic-list-header.raw.hbs+++ b/app/assets/javascripts/discourse/templates/topic-list-header.raw.hbs@@ -10,9 +10,6 @@{{raw "topic-list-header-column" order='posters'}}{{/if}}{{raw "topic-list-header-column" sortable=sortable number='true' order='posts' name='replies'}}-{{#if showParticipants}}- {{raw "topic-list-header-column" order='participants' name='users'}}-{{/if}}{{#if showLikes}}{{raw "topic-list-header-column" sortable=sortable number='true' order='likes' name='likes'}}{{/if}}diff --git a/app/assets/javascripts/discourse/templates/user-topics-list.hbs b/app/assets/javascripts/discourse/templates/user-topics-list.hbsindex d0b50081012..e59ec595e1e 100644--- a/app/assets/javascripts/discourse/templates/user-topics-list.hbs+++ b/app/assets/javascripts/discourse/templates/user-topics-list.hbs@@ -1,7 +1,6 @@{{#load-more class="paginated-topics-list" selector=".paginated-topics-list .topic-list tr" action=(action "loadMore")}}{{basic-topic-list topicList=modelhideCategory=hideCategory- showParticipants=showParticipantsshowPosters=showPostersbulkSelectEnabled=bulkSelectEnabledselected=selected