diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-07-30 17:21:46 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-07-30 17:21:46 +0200 |
commit | 610d16ab0e5a9521c84413d0145b88a6b4f6a6a9 (patch) | |
tree | 13b586529fd1d43f3275378751c274512b33ac23 /src/cmd3.c | |
parent | f23ea3ba0ef5561639634de58313d1ada696d2e3 (diff) |
Remove a little dead code.
Diffstat (limited to 'src/cmd3.c')
-rw-r--r-- | src/cmd3.c | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -18,15 +18,6 @@ */ void do_cmd_inven(void) { -#if 0 - /* Broken */ - - int capacity_tester = 0; - - int i = 0, j = 0; - -#endif - char out_val[160]; @@ -46,24 +37,6 @@ void do_cmd_inven(void) /* Hack -- hide empty slots */ item_tester_full = FALSE; -#if 0 - - /* Broken */ - - /* Extract the current weight (in tenth pounds) */ - j = calc_total_weight(); - - /* Extract the "weight limit" (in tenth pounds) */ - i = weight_limit(); - - capacity_tester = i + (i / 10) - 1; - - strnfmt(out_val, 160, - "Inventory: carrying %d.%d pounds (%d%% of capacity). Command: ", - total_weight / 10, total_weight % 10, - (total_weight * 100) / ((capacity_tester) / 2)); - -#else { s32b total_weight = calc_total_weight(); @@ -74,8 +47,6 @@ void do_cmd_inven(void) (total_weight * 100) / ((weight_limit()) / 2)); } -#endif - /* Get a command */ prt(out_val, 0, 0); |