From a388e2629d4be64541c8a72c9d26a5c85191fde4 Mon Sep 17 00:00:00 2001 From: piratefinn Date: Mon, 4 Jun 2018 15:25:24 +0100 Subject: [PATCH] extraneous console logs removed --- src/app/providers/api-service.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/app/providers/api-service.ts b/src/app/providers/api-service.ts index a77a68c..78a5485 100644 --- a/src/app/providers/api-service.ts +++ b/src/app/providers/api-service.ts @@ -29,18 +29,15 @@ export class ApiService { // Login API public getSessionKey() { - console.log('get key'); return this.sessionKey; } public setSessionKey(key) { - console.log('set key'); this.sessionKey = key; localStorage.setItem('sessionKey', this.sessionKey); } public removeSessionKey() { - console.log('remove key'); this.sessionKey = null; localStorage.removeItem('sessionKey'); } @@ -73,7 +70,6 @@ export class ApiService { } public logout() { - console.log(this.sessionKey); const key = this.sessionKey; return this.http .post( @@ -96,7 +92,6 @@ export class ApiService { data.package_name = 'Foodloop Web'; data.version_code = 'dev'; data.version_number = 'dev'; - console.log(data); return this.http.post( this.apiUrl + '/feedback', data @@ -230,7 +225,6 @@ export class ApiService { public setUserInfo( email: string, display_name: string) { - console.log('set UserInfo'); localStorage.setItem('email', email); localStorage.setItem('displayname', display_name); } @@ -238,7 +232,6 @@ export class ApiService { // Sets usertype public setUserType(user_type: string) { - console.log('set UserType'); localStorage.setItem('usertype', user_type); } @@ -263,33 +256,27 @@ export class ApiService { // Deletes account details on logout public removeUserInfo() { - console.log('remove UserInfo'); localStorage.removeItem('email'); localStorage.removeItem('displayname'); } public getFullName() { - console.log('get Full Name'); localStorage.getItem('fullname'); } public getDisplayName() { - console.log('get Display Name'); localStorage.getItem('displayname'); } public getPostcode() { - console.log('get Postcode'); localStorage.getItem('postcode'); } public getYearOfBirth() { - console.log('get Year of Birth'); localStorage.getItem('yearofbirth'); } public getEmail() { - console.log('get email'); localStorage.getItem('email'); }