forked from mystiq/hydrogen-web
Remove dead code
This commit is contained in:
parent
4df3654166
commit
687aa5a7e3
1 changed files with 0 additions and 11 deletions
|
@ -27,21 +27,10 @@ export class ReplyPreviewView extends TemplateView {
|
|||
// todo: this should probably be called viewClassForTile instead
|
||||
const viewClass = viewClassForEntry(vm);
|
||||
const view = new viewClass(vm, false)
|
||||
// const rendered = this._renderContent(t, vm, view);
|
||||
const rendered = view.render(t, vm);
|
||||
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 = []) {
|
||||
return t.blockquote(
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue