Skip to content

Commit

Permalink
chore: remove dead code (LocationPicker)
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGi committed Aug 10, 2022
1 parent 1b8cb5b commit c541a9e
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 1,171 deletions.
2 changes: 0 additions & 2 deletions packages/web-app-files/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import App from './App.vue'
import Favorites from './views/Favorites.vue'
import FilesDrop from './views/FilesDrop.vue'
import LocationPicker from './views/LocationPicker.vue'
import PrivateLink from './views/PrivateLink.vue'
import PublicFiles from './views/PublicFiles.vue'
import Personal from './views/Personal.vue'
Expand Down Expand Up @@ -101,7 +100,6 @@ export default {
Favorites,
Personal,
FilesDrop,
LocationPicker,
PrivateLink,
PublicFiles,
SearchResults,
Expand Down
13 changes: 1 addition & 12 deletions packages/web-app-files/src/router/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,20 @@ import { RouteComponents } from './router'
import { Location, RouteConfig } from 'vue-router'
import { $gettext, createLocation, isLocationActiveDirector } from './utils'

type operationsTypes = 'files-operations-location-picker' | 'files-operations-resolver-private-link'
type operationsTypes = 'files-operations-resolver-private-link'

export const createLocationOperations = (name: operationsTypes, location = {}): Location =>
createLocation(name, location)

const locationLocationPicker = createLocationOperations('files-operations-location-picker')
const locationResolverPrivateLink = createLocationOperations(
'files-operations-resolver-private-link'
)

export const isLocationOperationsActive = isLocationActiveDirector<operationsTypes>(
locationLocationPicker,
locationResolverPrivateLink
)

export const buildRoutes = (components: RouteComponents): RouteConfig[] => [
{
name: locationLocationPicker.name,
path: '/ops/location-picker/:context/:action/:item*',
component: components.LocationPicker,
meta: {
auth: false,
patchCleanPath: true
}
},
{
name: locationResolverPrivateLink.name,
path: '/ops/resolver/private-link/:fileId',
Expand Down
1 change: 0 additions & 1 deletion packages/web-app-files/src/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface RouteComponents {
App: ComponentOptions<Vue>
Favorites: ComponentOptions<Vue>
FilesDrop: ComponentOptions<Vue>
LocationPicker: ComponentOptions<Vue>
PrivateLink: ComponentOptions<Vue>
PublicFiles: ComponentOptions<Vue>
Personal: ComponentOptions<Vue>
Expand Down
Loading

0 comments on commit c541a9e

Please sign in to comment.