Merge pull request #477 from ente-io/unused_method
remove unused method
This commit is contained in:
commit
f63b644e78
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue