Skip to content

Commit f8b8c51

Browse files
committed
chore: clean expired code
1 parent fe3c2d1 commit f8b8c51

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

packages/@vuepress/core/lib/app/util.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import Vue from 'vue'
2-
import { loadComponent } from '@internal/async-component'
3-
41
/**
52
* Inject option to Vue SFC
63
* @param {object} options
@@ -38,13 +35,6 @@ export function findPageForPath (pages, path) {
3835
}
3936
}
4037

41-
export function registerComponent (key) {
42-
return loadComponent(key).then(comp => {
43-
Vue.component(key, comp.default)
44-
return comp.default
45-
})
46-
}
47-
4838
/**
4939
* Normalize config.
5040
* This utility is mainly for plugin developers. For some

packages/@vuepress/core/lib/internal-plugins/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = (options, ctx) => ({
1414
*/
1515
function importCode () {
1616
return `
17-
import { injectComponentOption, registerComponent } from '@app/util'
17+
import { injectComponentOption } from '@app/util'
1818
import rootMixins from '@internal/root-mixins'
1919
import components from '@internal/layout-components'
2020
import LayoutDistributor from '@app/components/LayoutDistributor.vue'

0 commit comments

Comments
 (0)