Merge pull request #477 from ente-io/unused_method

remove unused method
This commit is contained in:
Neeraj Gupta 2022-04-12 16:50:28 +05:30 committed by GitHub
commit f63b644e78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
import { getEndpoint, getPaymentsURL } from 'utils/common/apiUtil';
import { getToken } from 'utils/common/key';
import { setData, LS_KEYS } from 'utils/storage/localStorage';
import { convertBytesToHumanReadable } from 'utils/billing';
import HTTPService from './HTTPService';
import { logError } from 'utils/sentry';
import { getPaymentToken } from './userService';
@ -178,21 +177,6 @@ class billingService {
throw e;
}
}
public async getUsage() {
try {
const response = await HTTPService.get(
`${ENDPOINT}/billing/usage`,
{ startTime: 0, endTime: Date.now() * 1000 },
{
'X-Auth-Token': getToken(),
}
);
return convertBytesToHumanReadable(response.data.usage);
} catch (e) {
logError(e, 'error getting usage');
}
}
}
export default new billingService();