Skip to content

Commit

Permalink
chore: remove unused/redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed May 9, 2024
1 parent d68d09c commit 25dc8b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 3 additions & 9 deletions libs/feature/record/src/lib/state/mdview.facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ import { LinkClassifierService, LinkUsage } from '@geonetwork-ui/util/shared'
import { DatavizConfigurationModel } from '@geonetwork-ui/common/domain/model/dataviz/dataviz-configuration.model'
import {
CatalogRecord,
DatasetDistribution,
UserFeedback,
} from '@geonetwork-ui/common/domain/model/record'
import { AvatarServiceInterface } from '@geonetwork-ui/api/repository'
import { Observable } from 'rxjs'

@Injectable()
/**
Expand Down Expand Up @@ -48,15 +46,11 @@ export class MdViewFacade {

error$ = this.store.pipe(select(MdViewSelectors.getMetadataError))

related$: Observable<CatalogRecord[]> = this.store.pipe(
select(MdViewSelectors.getRelated)
)
related$ = this.store.pipe(select(MdViewSelectors.getRelated))

chartConfig$: Observable<DatavizConfigurationModel> = this.store.pipe(
select(MdViewSelectors.getChartConfig)
)
chartConfig$ = this.store.pipe(select(MdViewSelectors.getChartConfig))

allLinks$: Observable<DatasetDistribution[]> = this.metadata$.pipe(
allLinks$ = this.metadata$.pipe(
map((record) => ('distributions' in record ? record.distributions : []))
)

Expand Down
2 changes: 0 additions & 2 deletions libs/ui/elements/src/lib/ui-elements.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import { MarkdownParserComponent } from './markdown-parser/markdown-parser.compo
import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-overlay-preview.component'
import { UserFeedbackItemComponent } from './user-feedback-item/user-feedback-item.component'
import { TimeSincePipe } from './user-feedback-item/time-since.pipe'
import { MatPaginatorModule } from '@angular/material/paginator'

@NgModule({
imports: [
Expand All @@ -51,7 +50,6 @@ import { MatPaginatorModule } from '@angular/material/paginator'
MarkdownParserComponent,
ThumbnailComponent,
TimeSincePipe,
MatPaginatorModule,
],
declarations: [
MetadataInfoComponent,
Expand Down

0 comments on commit 25dc8b3

Please sign in to comment.