Skip to content

Commit daf297b

Browse files
committed
101289: Removed unnecessary data services from primary bitstream service
1 parent 9d2fed4 commit daf297b

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/app/core/data/primary-bitstream.service.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import { Bitstream } from '../shared/bitstream.model';
2-
import { DeleteDataImpl } from './base/delete-data';
3-
import { PutDataImpl } from './base/put-data';
4-
import { CreateDataImpl } from './base/create-data';
52
import { Injectable } from '@angular/core';
63
import { RequestService } from './request.service';
74
import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service';
@@ -11,7 +8,6 @@ import { Observable, switchMap } from 'rxjs';
118
import { RemoteData } from './remote-data';
129
import { Bundle } from '../shared/bundle.model';
1310
import { NotificationsService } from '../../shared/notifications/notifications.service';
14-
import { constructIdEndpointDefault } from './base/identifiable-data.service';
1511
import { HttpOptions } from '../dspace-rest/dspace-rest.service';
1612
import { HttpHeaders } from '@angular/common/http';
1713
import { GenericConstructor } from '../shared/generic-constructor';
@@ -24,9 +20,6 @@ import { BundleDataService } from './bundle-data.service';
2420
providedIn: 'root',
2521
})
2622
export class PrimaryBitstreamService {
27-
private createData: CreateDataImpl<any>;
28-
private putData: PutDataImpl<any>;
29-
private deleteData: DeleteDataImpl<any>;
3023

3124
constructor(
3225
protected requestService: RequestService,
@@ -36,10 +29,6 @@ export class PrimaryBitstreamService {
3629
protected notificationsService: NotificationsService,
3730
protected bundleDataService: BundleDataService,
3831
) {
39-
// linkPath can be undefined because we'll only use them to do things "byHref"
40-
this.createData = new CreateDataImpl(undefined, requestService, rdbService, objectCache, halService, notificationsService, undefined);
41-
this.putData = new PutDataImpl(undefined, requestService, rdbService, objectCache, halService, undefined);
42-
this.deleteData = new DeleteDataImpl(undefined, requestService, rdbService, objectCache, halService, notificationsService, undefined, constructIdEndpointDefault);
4332
}
4433

4534
/**

0 commit comments

Comments
 (0)