fix: remove useless noop methods (#1325)
This commit is contained in:
parent
68343a7a09
commit
ade28cca5d
|
@ -89,12 +89,8 @@
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import SvgIcon from '../../SvgIcon.html'
|
import SvgIcon from '../../SvgIcon.html'
|
||||||
import noop from 'lodash-es/noop'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
methods: {
|
|
||||||
noop
|
|
||||||
},
|
|
||||||
components: {
|
components: {
|
||||||
SvgIcon
|
SvgIcon
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
import { goto } from '../../../../__sapper__/client'
|
import { goto } from '../../../../__sapper__/client'
|
||||||
import { composeNewStatusMentioning } from '../../_actions/mention'
|
import { composeNewStatusMentioning } from '../../_actions/mention'
|
||||||
import { classname } from '../../_utils/classname'
|
import { classname } from '../../_utils/classname'
|
||||||
import noop from 'lodash-es/noop'
|
|
||||||
import { createStatusOrNotificationUuid } from '../../_utils/createStatusOrNotificationUuid'
|
import { createStatusOrNotificationUuid } from '../../_utils/createStatusOrNotificationUuid'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -77,7 +76,6 @@
|
||||||
))
|
))
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
noop,
|
|
||||||
openAuthorProfile () {
|
openAuthorProfile () {
|
||||||
let { accountId } = this.get()
|
let { accountId } = this.get()
|
||||||
goto(`/accounts/${accountId}`)
|
goto(`/accounts/${accountId}`)
|
||||||
|
|
|
@ -134,7 +134,6 @@
|
||||||
import { LONG_POST_LENGTH, LONG_POST_TEXT } from '../../_static/statuses'
|
import { LONG_POST_LENGTH, LONG_POST_TEXT } from '../../_static/statuses'
|
||||||
import { absoluteDateFormatter } from '../../_utils/formatters'
|
import { absoluteDateFormatter } from '../../_utils/formatters'
|
||||||
import { composeNewStatusMentioning } from '../../_actions/mention'
|
import { composeNewStatusMentioning } from '../../_actions/mention'
|
||||||
import noop from 'lodash-es/noop'
|
|
||||||
import { createStatusOrNotificationUuid } from '../../_utils/createStatusOrNotificationUuid'
|
import { createStatusOrNotificationUuid } from '../../_utils/createStatusOrNotificationUuid'
|
||||||
import { statusHtmlToPlainText } from '../../_utils/statusHtmlToPlainText'
|
import { statusHtmlToPlainText } from '../../_utils/statusHtmlToPlainText'
|
||||||
|
|
||||||
|
@ -184,7 +183,6 @@
|
||||||
}),
|
}),
|
||||||
store: () => store,
|
store: () => store,
|
||||||
methods: {
|
methods: {
|
||||||
noop,
|
|
||||||
onClickOrKeydown (e) {
|
onClickOrKeydown (e) {
|
||||||
let { type, keyCode, target } = e
|
let { type, keyCode, target } = e
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue