Skip to content

Commit 5f1b01a

Browse files
Delete unused code
1 parent 178cff1 commit 5f1b01a

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/app/shared/shared-variable/shared-variable.service.ts

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { Injectable } from "@angular/core";
22
import { Organisation, OrganisationGetMinimalResponse } from "@app/admin/organisation/organisation.model";
33
import { OrganisationService } from "@app/admin/organisation/organisation.service";
4-
import { UserMinimal } from "@app/admin/users/user-minimal.model";
5-
import { UserMinimalService } from "@app/admin/users/user-minimal.service";
64
import { AuthService, CurrentUserInfoResponse } from "@auth/auth.service";
75
import { BehaviorSubject, Observable } from "rxjs";
86
import { tap } from "rxjs/operators";
@@ -11,17 +9,13 @@ import { tap } from "rxjs/operators";
119
providedIn: "root",
1210
})
1311
export class SharedVariableService {
14-
constructor(
15-
private authService: AuthService,
16-
private organisationService: OrganisationService,
17-
private userMinimalService: UserMinimalService
18-
) {
19-
this.routerInfo = new BehaviorSubject<number>(0);
20-
}
2112
private selectedOrganisationId: number;
2213
private routerInfo: BehaviorSubject<number>;
2314
private organizationInfo: Organisation[];
24-
private userMinimalList: UserMinimal[];
15+
16+
constructor(private authService: AuthService, private organisationService: OrganisationService) {
17+
this.routerInfo = new BehaviorSubject<number>(0);
18+
}
2519

2620
getValue(): Observable<number> {
2721
return this.routerInfo.asObservable();
@@ -67,10 +61,6 @@ export class SharedVariableService {
6761
return this.organizationInfo;
6862
}
6963

70-
getCurrentOrgRole(): string {
71-
return "ss";
72-
}
73-
7464
getUsername(): string {
7565
return this.getUserInfo()?.user?.name;
7666
}

0 commit comments

Comments
 (0)