Skip to content

Commit

Permalink
Remove deprecated code after prior notices
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt committed Nov 16, 2023
1 parent 0e79aa9 commit 5640811
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/change-remove-deprecations
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Change: Remove deprecated code

We have removed the `getToken` getter from our vuex store and support for the deprecated `user-management` name for the `admin-settings` app.
See linked "Deprecations" issue for more information.

https://github.com/owncloud/web/issues/7338
https://github.com/owncloud/web/pull/9959
3 changes: 1 addition & 2 deletions packages/web-runtime/src/container/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ const rewriteDeprecatedAppNames = (
): RuntimeConfiguration => {
const appAliases = [
{ name: 'preview', oldName: 'media-viewer' },
{ name: 'text-editor', oldName: 'markdown-editor' },
{ name: 'admin-settings', oldName: 'user-management' }
{ name: 'text-editor', oldName: 'markdown-editor' }
]
return {
...runtimeConfiguration,
Expand Down
9 changes: 0 additions & 9 deletions packages/web-runtime/src/store/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ const getInitialState = () => ({
const state = getInitialState()

const getters = {
/**
* The `getToken` getter is deprecated. Please use getters['runtime/auth/accessToken'] instead.
*
* @param state
* @param getters
* @param rootState
* @param rootGetters
*/
getToken: (state, getters, rootState, rootGetters) => rootGetters['runtime/auth/accessToken'],
capabilities: (state) => state.capabilities,
quota: (state) => state.quota,
user: (state) => state
Expand Down

0 comments on commit 5640811

Please sign in to comment.