Remove http deps from search service which were no longer used

This commit is contained in:
Will Abson
2016-06-06 16:00:59 +01:00
parent 532dd2a244
commit 8a5557a790
2 changed files with 3 additions and 6 deletions

View File

@@ -26,10 +26,9 @@ export class AlfrescoServiceMock extends AlfrescoService {
_folderToReturn: any = {};
constructor(
http: Http = null,
settings: AlfrescoSettingsService = null
) {
super(http, settings);
super(settings);
}
getFolder(folder: string) {

View File

@@ -16,7 +16,6 @@
*/
import { Injectable } from 'angular2/core';
import { Http, Response } from 'angular2/http';
import { Observable } from 'rxjs/Observable';
import { AlfrescoSettingsService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
@@ -31,8 +30,7 @@ export class AlfrescoService {
private _baseUrlPath: string = '/alfresco/api/-default-/public/alfresco/versions/1';
constructor(private http: Http,
private settings: AlfrescoSettingsService) {
constructor(private settings: AlfrescoSettingsService) {
}
public getHost(): string {
@@ -94,7 +92,7 @@ export class AlfrescoService {
document.entry.id + '/content';
}
private handleError(error: Response) {
private handleError(error: any) {
// in a real world app, we may send the error to some remote logging infrastructure
// instead of just logging it to the console
console.error(error);