From f543a8caef0362c7da6890c2f02e901f4cb63888 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 8 Mar 2008 14:52:41 +0000 Subject: [PATCH] 'final' operator fixed, uncessary methods removed --- application/ship-simu/main/class_BasePersonell.php | 2 +- .../structures/extended/decks/cargo/class_CarDeck.php | 10 ---------- .../extended/decks/cargo/class_TrainDeck.php | 10 ---------- .../extended/decks/cargo/class_TruckDeck.php | 10 ---------- 4 files changed, 1 insertion(+), 31 deletions(-) diff --git a/application/ship-simu/main/class_BasePersonell.php b/application/ship-simu/main/class_BasePersonell.php index 848989c..d77fbaa 100644 --- a/application/ship-simu/main/class_BasePersonell.php +++ b/application/ship-simu/main/class_BasePersonell.php @@ -162,7 +162,7 @@ class BasePersonell extends BaseFrameworkSystem implements Personellizer { } // Getter for surname - public final function getSurname () { + public function getSurname () { return $this->surname; } diff --git a/application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php b/application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php index 397b348..7369fd2 100644 --- a/application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php +++ b/application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php @@ -76,16 +76,6 @@ class CarDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart parent::removeNumDecks(); } - // Setter-Methode fuer Anzahl Decks - public final function setNumDecks($numDecks) { - parent::setNumDecks($numDecks); - } - - // Getter-Methode fuer Anzahl Decks - public final function getNumDecks() { - return parent::getNumDecks(); - } - // Overwritten method for tradeable items public function isTradeable () { return true; diff --git a/application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php b/application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php index 4c26c39..d9c7990 100644 --- a/application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php +++ b/application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php @@ -76,16 +76,6 @@ class TrainDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPa parent::removeNumDecks(); } - // Setter-Methode fuer Anzahl Decks - public final function setNumDecks ($numDecks) { - parent::setNumDecks($numDecks); - } - - // Getter-Methode fuer Anzahl Decks - public final function getNumDecks() { - return parent::getNumDecks(); - } - // Overwritten method for tradeable items public function isTradeable () { return true; diff --git a/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php b/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php index 99c901a..04823a2 100644 --- a/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php +++ b/application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php @@ -77,16 +77,6 @@ class TruckDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPa parent::removeNumDecks(); } - // Setter-Methode fuer Anzahl Decks - public final function setNumDecks ($numDecks) { - parent::setNumDecks($numDecks); - } - - // Getter-Methode fuer Anzahl Decks - public final function getNumDecks() { - return parent::getNumDecks(); - } - // Overwritten method for tradeable items public function isTradeable () { return true; -- 2.39.5