Skip to content

Commit aac70d3

Browse files
committed
Remove unused methods remove*.
1 parent 438f6bb commit aac70d3

19 files changed

+0
-225
lines changed

webapp/src/Entity/Clarification.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,6 @@ public function addReply(Clarification $reply): Clarification
279279
return $this;
280280
}
281281

282-
public function removeReply(Clarification $reply)
283-
{
284-
$this->replies->removeElement($reply);
285-
}
286-
287282
public function getReplies(): Collection
288283
{
289284
return $this->replies;

webapp/src/Entity/Contest.php

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -806,11 +806,6 @@ public function addTeam(Team $team): Contest
806806
return $this;
807807
}
808808

809-
public function removeTeam(Team $team): void
810-
{
811-
$this->teams->removeElement($team);
812-
}
813-
814809
public function getTeams(): Collection
815810
{
816811
return $this->teams;
@@ -838,11 +833,6 @@ public function addClarification(Clarification $clarification): Contest
838833
return $this;
839834
}
840835

841-
public function removeClarification(Clarification $clarification): void
842-
{
843-
$this->clarifications->removeElement($clarification);
844-
}
845-
846836
public function getClarifications(): Collection
847837
{
848838
return $this->clarifications;
@@ -854,11 +844,6 @@ public function addSubmission(Submission $submission): Contest
854844
return $this;
855845
}
856846

857-
public function removeSubmission(Submission $submission): void
858-
{
859-
$this->submissions->removeElement($submission);
860-
}
861-
862847
public function getSubmissions(): Collection
863848
{
864849
return $this->submissions;
@@ -870,11 +855,6 @@ public function addInternalError(InternalError $internalError): Contest
870855
return $this;
871856
}
872857

873-
public function removeInternalError(InternalError $internalError): void
874-
{
875-
$this->internal_errors->removeElement($internalError);
876-
}
877-
878858
public function getInternalErrors(): Collection
879859
{
880860
return $this->internal_errors;
@@ -1272,15 +1252,6 @@ public function addTeamCategory(TeamCategory $teamCategory): self
12721252
return $this;
12731253
}
12741254

1275-
public function removeTeamCategory(TeamCategory $teamCategory): self
1276-
{
1277-
if ($this->team_categories->contains($teamCategory)) {
1278-
$this->team_categories->removeElement($teamCategory);
1279-
}
1280-
1281-
return $this;
1282-
}
1283-
12841255
/**
12851256
* @return Collection|ExternalContestSource[]
12861257
*/
@@ -1298,15 +1269,6 @@ public function addExternalContestSource(ExternalContestSource $externalContestS
12981269
return $this;
12991270
}
13001271

1301-
public function removeExternalContestSource(ExternalContestSource $externalContestSource): self
1302-
{
1303-
if ($this->externalContestSources->contains($externalContestSource)) {
1304-
$this->externalContestSources->removeElement($externalContestSource);
1305-
}
1306-
1307-
return $this;
1308-
}
1309-
13101272
public function getBannerFile(): ?UploadedFile
13111273
{
13121274
return $this->bannerFile;

webapp/src/Entity/ContestProblem.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,6 @@ public function addSubmission(Submission $submission): ContestProblem
205205
return $this;
206206
}
207207

208-
public function removeSubmission(Submission $submission): void
209-
{
210-
$this->submissions->removeElement($submission);
211-
}
212-
213208
public function getSubmissions(): Collection
214209
{
215210
return $this->submissions;

webapp/src/Entity/Executable.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@ public function addLanguage(Language $language): Executable
9898
return $this;
9999
}
100100

101-
public function removeLanguage(Language $language): void
102-
{
103-
$this->languages->removeElement($language);
104-
}
105-
106101
public function getLanguages(): Collection
107102
{
108103
return $this->languages;
@@ -114,11 +109,6 @@ public function addProblemsCompare(Problem $problemsCompare): Executable
114109
return $this;
115110
}
116111

117-
public function removeProblemsCompare(Problem $problemsCompare): void
118-
{
119-
$this->problems_compare->removeElement($problemsCompare);
120-
}
121-
122112
public function getProblemsCompare(): Collection
123113
{
124114
return $this->problems_compare;
@@ -130,11 +120,6 @@ public function addProblemsRun(Problem $problemsRun): Executable
130120
return $this;
131121
}
132122

133-
public function removeProblemsRun(Problem $problemsRun): void
134-
{
135-
$this->problems_run->removeElement($problemsRun);
136-
}
137-
138123
public function getProblemsRun(): Collection
139124
{
140125
return $this->problems_run;

webapp/src/Entity/ExternalContestSource.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,6 @@ public function addExternalSourceWarning(ExternalSourceWarning $warning): self
165165
return $this;
166166
}
167167

168-
public function removeExternalSourceWarning(ExternalSourceWarning $warning): self
169-
{
170-
if ($this->warnings->contains($warning)) {
171-
$this->warnings->removeElement($warning);
172-
}
173-
174-
return $this;
175-
}
176-
177168
public function getShortDescription(): string
178169
{
179170
return $this->getSource();

webapp/src/Entity/ExternalJudgement.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,6 @@ public function addExternalRun(ExternalRun $externalRun): ExternalJudgement
221221
return $this;
222222
}
223223

224-
public function removeExternalRun(ExternalRun $externalRun): void
225-
{
226-
$this->external_runs->removeElement($externalRun);
227-
}
228-
229224
public function getExternalRuns(): Collection
230225
{
231226
return $this->external_runs;

webapp/src/Entity/JudgeTask.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,6 @@ public function addJudgingRun(JudgingRun $judgingRun): JudgeTask
349349
return $this;
350350
}
351351

352-
public function removeJudgingRun(JudgingRun $judgingRun): JudgeTask
353-
{
354-
$this->judging_runs->removeElement($judgingRun);
355-
return $this;
356-
}
357-
358352
public function getJudgingRuns(): Collection
359353
{
360354
return $this->judging_runs;

webapp/src/Entity/Judgehost.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ public function addJudgeTask(JudgeTask $judgeTask): Judgehost
105105
return $this;
106106
}
107107

108-
public function removeJudgeTask(JudgeTask $judgeTask): void
109-
{
110-
$this->judgetasks->removeElement($judgeTask);
111-
}
112-
113108
public function getJudgeTasks(): Collection
114109
{
115110
return $this->judgetasks;

webapp/src/Entity/Judging.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,6 @@ public function addRun(JudgingRun $run): Judging
414414
return $this;
415415
}
416416

417-
public function removeRun(JudgingRun $run): void
418-
{
419-
$this->runs->removeElement($run);
420-
}
421-
422417
public function getRuns(): Collection
423418
{
424419
return $this->runs;

webapp/src/Entity/Language.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,6 @@ public function addSubmission(Submission $submission): Language
261261
return $this;
262262
}
263263

264-
public function removeSubmission(Submission $submission)
265-
{
266-
$this->submissions->removeElement($submission);
267-
}
268-
269264
public function getSubmissions(): Collection
270265
{
271266
return $this->submissions;

0 commit comments

Comments
 (0)