diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-04-27 00:15:07 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-04-27 00:54:33 +0200 |
commit | 505562169e8c3860c5a0cd34cb598edda33cf38b (patch) | |
tree | 7daf1d6f737235255c514e2a19ea2cc0cc53e46d /crawl-ref/source/branch.cc | |
parent | 3b6cb78c875ca01c907641e26e0c5f8152111b45 (diff) | |
download | crawl-ref-505562169e8c3860c5a0cd34cb598edda33cf38b.tar.gz crawl-ref-505562169e8c3860c5a0cd34cb598edda33cf38b.zip |
Remove an almost unused function.
The only call to it was special-cased to return the Vestibule immediately.
Diffstat (limited to 'crawl-ref/source/branch.cc')
-rw-r--r-- | crawl-ref/source/branch.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/crawl-ref/source/branch.cc b/crawl-ref/source/branch.cc index 08e1949146..62a2d20fd9 100644 --- a/crawl-ref/source/branch.cc +++ b/crawl-ref/source/branch.cc @@ -22,22 +22,6 @@ bool at_branch_bottom() return brdepth[you.where_are_you] == you.depth; } -level_id branch_entry_level(branch_type branch) -{ - // Hell and its subbranches need obnoxious special-casing: - if (branch == BRANCH_VESTIBULE_OF_HELL) - return level_id(you.hell_branch, you.hell_exit); - else if (is_hell_subbranch(branch)) - return level_id(BRANCH_VESTIBULE_OF_HELL, 1); - - const branch_type parent = branches[branch].parent_branch; - const int subdepth = startdepth[branch]; - - // This may be invalid if the branch doesn't exist this game -- - // it's the caller's job to check. - return level_id(parent, subdepth); -} - level_id current_level_parent() { // Never called from X[], we don't have to support levels you're not on. |