summaryrefslogtreecommitdiff
path: root/src/cmd3.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2010-07-30 17:21:46 +0200
committerBardur Arantsson <bardur@scientician.net>2010-07-30 17:21:46 +0200
commit610d16ab0e5a9521c84413d0145b88a6b4f6a6a9 (patch)
tree13b586529fd1d43f3275378751c274512b33ac23 /src/cmd3.c
parentf23ea3ba0ef5561639634de58313d1ada696d2e3 (diff)
Remove a little dead code.
Diffstat (limited to 'src/cmd3.c')
-rw-r--r--src/cmd3.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/cmd3.c b/src/cmd3.c
index 65f431f1..7692a15d 100644
--- a/src/cmd3.c
+++ b/src/cmd3.c
@@ -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);