summaryrefslogtreecommitdiffstats
path: root/src/Data/Level.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/Level.cpp')
-rw-r--r--src/Data/Level.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/Data/Level.cpp b/src/Data/Level.cpp
index 7193f37..6dcba95 100644
--- a/src/Data/Level.cpp
+++ b/src/Data/Level.cpp
@@ -89,19 +89,9 @@ void Level::removeRoom(Room *room) {
delete room;
}
-Gate* Level::getGate(const Glib::ustring &id) const {
- for(std::list<Gate*>::const_iterator gate = gates.begin(); gate != gates.end(); ++gate) {
- if((*gate)->getId() == id)
- return *gate;
- }
-
- return 0;
-}
-
-Gate* Level::addGate(const Glib::ustring &id) {
+Gate* Level::addGate() {
xmlpp::Element *node = gatesNode->add_child("gate");
- node->set_attribute("id", id);
node->set_attribute("room1", "");
node->set_attribute("room2", "");