Skip to content

Commit b3367e6

Browse files
committed
Remove unused getOwner method
1 parent 39de6a7 commit b3367e6

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/model/Subscription.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import isUrl from "is-url";
33
import { authenticatedRequest } from "../api";
44
import { getConfig } from "../config";
55

6-
import { Account } from "./Account";
76
import type {
87
MaybeComplexFormattedCost,
98
MaybeComplexFormattedCostCounter,
@@ -465,20 +464,6 @@ export class Subscription extends Ressource {
465464
return this.status;
466465
}
467466

468-
/**
469-
* Get the account for the project's owner.
470-
*
471-
* @return Account|false
472-
*/
473-
async getOwner() {
474-
const id = this.owner;
475-
476-
return Account.get(
477-
{ id },
478-
this.makeAbsoluteUrl("/api/users", this.getLink("project"))
479-
);
480-
}
481-
482467
/**
483468
* Get the project associated with this subscription.
484469
*

0 commit comments

Comments
 (0)