11import { 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' ;
52import { Injectable } from '@angular/core' ;
63import { RequestService } from './request.service' ;
74import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service' ;
@@ -11,7 +8,6 @@ import { Observable, switchMap } from 'rxjs';
118import { RemoteData } from './remote-data' ;
129import { Bundle } from '../shared/bundle.model' ;
1310import { NotificationsService } from '../../shared/notifications/notifications.service' ;
14- import { constructIdEndpointDefault } from './base/identifiable-data.service' ;
1511import { HttpOptions } from '../dspace-rest/dspace-rest.service' ;
1612import { HttpHeaders } from '@angular/common/http' ;
1713import { GenericConstructor } from '../shared/generic-constructor' ;
@@ -24,9 +20,6 @@ import { BundleDataService } from './bundle-data.service';
2420 providedIn : 'root' ,
2521} )
2622export 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