Remove dead code

This commit is contained in:
RMidhunSuresh 2021-12-20 11:25:26 +05:30
parent 4df3654166
commit 687aa5a7e3

View file

@ -27,21 +27,10 @@ export class ReplyPreviewView extends TemplateView {
// todo: this should probably be called viewClassForTile instead // todo: this should probably be called viewClassForTile instead
const viewClass = viewClassForEntry(vm); const viewClass = viewClassForEntry(vm);
const view = new viewClass(vm, false) const view = new viewClass(vm, false)
// const rendered = this._renderContent(t, vm, view);
const rendered = view.render(t, vm); const rendered = view.render(t, vm);
return this._renderReplyHeader(t, vm, [rendered]); return this._renderReplyHeader(t, vm, [rendered]);
} }
_renderContent(t, vm, view) {
switch (vm.shape) {
case "image":
case "video":
return view.renderMedia(t, vm);
default:
return view.renderMessageBody(t, vm);
}
}
_renderReplyHeader(t, vm, children = []) { _renderReplyHeader(t, vm, children = []) {
return t.blockquote( return t.blockquote(
[ [