Skip to content

Commit 92f0da7

Browse files
Merge pull request #554 from appwrite/fix-remove-status-role
Remove redundant status role method
2 parents eba0b96 + 2bc0cb8 commit 92f0da7

File tree

10 files changed

+1
-36
lines changed

10 files changed

+1
-36
lines changed

templates/android/library/src/main/java/io/appwrite/Role.kt.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,5 @@ class Role {
2525
}
2626

2727
fun member(id: String): String = "member:$id"
28-
29-
fun status(status: String): String = "status:$status"
3028
}
3129
}

templates/dart/lib/role.dart.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,4 @@ class Role {
3333
static String member(String id) {
3434
return 'member:$id';
3535
}
36-
37-
static String status(String status) {
38-
return 'status:$status';
39-
}
4036
}

templates/deno/src/role.ts.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,4 @@ export class Role {
3131
public static member(id: string): string {
3232
return `member:${id}`
3333
}
34-
35-
public static status(status: string): string {
36-
return `status:${status}`
37-
}
3834
}

templates/kotlin/src/main/kotlin/io/appwrite/Role.kt.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,5 @@ class Role {
2525
}
2626

2727
fun member(id: String): String = "member:$id"
28-
29-
fun status(status: String): String = "status:$status"
3028
}
3129
}

templates/node/lib/role.js.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ class Role {
2626
static member = (id) => {
2727
return 'member:' + id
2828
}
29-
static status = (status) => {
30-
return 'status:' + status
31-
}
3229
}
3330

3431
module.exports = Role;

templates/php/src/Role.php.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,4 @@ class Role
3737
{
3838
return "member:$id";
3939
}
40-
public static function status(string $status): string
41-
{
42-
return "status:$status";
43-
}
4440
}

templates/python/package/role.py.twig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,4 @@ class Role:
2727

2828
@staticmethod
2929
def member(id):
30-
return f'member:{id}'
31-
32-
@staticmethod
33-
def status(status):
34-
return f'status:{status}'
30+
return f'member:{id}'

templates/ruby/lib/container/role.rb.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@ module {{spec.title | caseUcfirst}}
3535
def self.member(id)
3636
"member:#{id}"
3737
end
38-
39-
def self.status(status)
40-
"status:#{status}"
41-
end
4238
end
4339
end

templates/swift/Sources/Role.swift.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,4 @@ public class Role {
3131
public static func member(_ id: String) -> String {
3232
return "member:\(id)"
3333
}
34-
35-
public static func status(_ status: String) -> String {
36-
return "status:\(status)"
37-
}
3834
}

templates/web/src/role.ts.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,4 @@ export class Role {
3131
public static member(id: string): string {
3232
return `member:${id}`
3333
}
34-
35-
public static status(status: string): string {
36-
return `status:${status}`
37-
}
3834
}

0 commit comments

Comments
 (0)