Skip to content

Commit

Permalink
Deleted "g.NOTHING" that was an unused constant
Browse files Browse the repository at this point in the history
  • Loading branch information
katono committed Sep 22, 2014
1 parent 0ecf0e4 commit 5987bfa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions autoload/rogue/const.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ local g = Rogue -- alias
g.print_enum = {}

-- g.dungeon
g.NOTHING = 0
g.OBJECT = 1
g.MONSTER = 2
g.STAIRS = 3
Expand All @@ -15,7 +14,6 @@ g.TUNNEL = 8
g.TRAP = 9
g.HIDDEN = 10
g.dungeon_desc = {
[g.NOTHING] = "NOTHING",
[g.OBJECT] = "OBJECT",
[g.MONSTER] = "MONSTER",
[g.STAIRS] = "STAIRS",
Expand Down
1 change: 0 additions & 1 deletion autoload/rogue/save.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ local function save_into_file(fname)
:gsub(' = (%-?%d)', '=%1')
:gsub(' = (true)', '=%1')
:gsub(' = (false)', '=%1')
:gsub('"NOTHING"', '1')
:gsub('"OBJECT"', '1')
:gsub('"MONSTER"', '1')
:gsub('"STAIRS"', '1')
Expand Down

0 comments on commit 5987bfa

Please sign in to comment.