Skip to content

Commit b847a9d

Browse files
committed
chore(*): removed unused service method
1 parent 1094409 commit b847a9d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/app/services/remote-lod.service.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { HttpClient } from '@angular/common/http';
22
import { Injectable } from '@angular/core';
33
import { Observable } from 'rxjs';
44
import { map } from 'rxjs/operators';
5-
import { parseString } from 'xml2js';
65

76
interface IDataResponse {
87
value: any[];
@@ -27,21 +26,6 @@ export class RemoteLoDService {
2726
);
2827
}
2928

30-
public getMetadata(): Observable<object> {
31-
return this.http.get(`${this.url}$metadata`, { responseType: 'text' }).pipe(
32-
map((response: string) => {
33-
let result;
34-
parseString(response, { explicitArray: false }, (err, parsedResult) => {
35-
if (err) {
36-
throw new Error('Error parsing XML');
37-
}
38-
result = parsedResult;
39-
});
40-
return result;
41-
})
42-
);
43-
}
44-
4529
public buildUrl(dataState: IDataState) {
4630
let qS = '';
4731
if (dataState) {

0 commit comments

Comments
 (0)