Skip to content

Commit e45bf2b

Browse files
authored
Fix: Remove unused methods
Closes GH-607.
1 parent f24a9f3 commit e45bf2b

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/News/Entry.php

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ class Entry {
2121

2222

2323
protected $title = '';
24-
public function getTitle(): string {
25-
return $this->title;
26-
}
2724

2825
public function setTitle(string $title): self {
2926
$this->title = $title;
@@ -49,9 +46,7 @@ public function addCategory(string $cat): self {
4946
}
5047
return $this;
5148
}
52-
public function getCategories(): array {
53-
return $this->categories;
54-
}
49+
5550
public function isConference(): bool {
5651
return (bool)array_intersect($this->categories, ['cfp', 'conferences']);
5752
}
@@ -61,9 +56,6 @@ public function setConfTime(int $time): self {
6156
$this->conf_time = $time;
6257
return $this;
6358
}
64-
public function getConfTime(): int {
65-
return $this->conf_time;
66-
}
6759

6860
protected $image = [];
6961
public function setImage(string $path, string $title, ?string $link): self {
@@ -80,9 +72,6 @@ public function setImage(string $path, string $title, ?string $link): self {
8072
];
8173
return $this;
8274
}
83-
public function getImage(): array {
84-
return $this->image;
85-
}
8675

8776
protected $content = '';
8877
public function setContent(string $content): self {
@@ -92,9 +81,6 @@ public function setContent(string $content): self {
9281
$this->content = $content;
9382
return $this;
9483
}
95-
public function getContent(): string {
96-
return $this->content;
97-
}
9884

9985
protected $id = '';
10086
private static function selectNextId(): string {

0 commit comments

Comments
 (0)