From: Bastian Dehn Date: Mon, 6 Jun 2022 16:41:09 +0000 (+0200) Subject: remove: import service X-Git-Tag: v1.0^2~34 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=0dcabca31f4be6a012096c0627a848f49025d9b3;p=speisekarten-editor.git remove: import service --- diff --git a/src/app/app.component.ts b/src/app/app.component.ts index ef7399f..ca02bfc 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -4,7 +4,6 @@ import { ISubtitle } from './isubtitle'; import { IFood } from './ifood'; import { IFoodCard } from './ifood-card'; import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; -import { ImportService } from './import.service'; @Component({ selector: 'app-root', @@ -24,10 +23,7 @@ export class AppComponent public edit: boolean = false; public downloadJsonHref: SafeUrl = ""; - constructor(private sanitizer: DomSanitizer, - private importService: ImportService) - { - } + constructor(private sanitizer: DomSanitizer) {} public changeFormTitleVisible(): void { diff --git a/src/app/import.service.spec.ts b/src/app/import.service.spec.ts deleted file mode 100644 index da66864..0000000 --- a/src/app/import.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { ImportService } from './import.service'; - -describe('ImportService', () => { - let service: ImportService; - - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(ImportService); - }); - - it('should be created', () => { - expect(service).toBeTruthy(); - }); -}); diff --git a/src/app/import.service.ts b/src/app/import.service.ts deleted file mode 100644 index b0f2842..0000000 --- a/src/app/import.service.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Injectable } from '@angular/core'; -import { HttpClient } from '@angular/common/http'; -import { IFoodCard } from './ifood-card'; -import { Observable } from 'rxjs'; - -@Injectable({ - providedIn: 'root' -}) - -export class ImportService -{ - constructor(private httpClient: HttpClient) {} - - public getImport(path: string): Observable - { - return this.httpClient.get(path); - } -}