From ab290e09ca6887a9c993c6a2a16c6a94f55907b2 Mon Sep 17 00:00:00 2001 From: Steven Chan Date: Wed, 3 Sep 2014 15:05:07 -0700 Subject: [PATCH] Remove unused item_status() function Signed-off-by: Steven Chan --- src/overdrive.coffee | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/overdrive.coffee b/src/overdrive.coffee index b0361ed..c8f75b6 100644 --- a/src/overdrive.coffee +++ b/src/overdrive.coffee @@ -64,15 +64,6 @@ require [ xs = window.location.pathname.match /eg\/opac\/(.+)/ if xs then xs[1].replace /\/\d+/, '' else '' - # Make a map from an item ID to a status indicating whether it is on the - # holds list or the checkout list - # eg, var status = ids(holds, checkouts)[id] - item_status = (holds, checkouts) -> - ids = {} - ids[v.reserveId] = 'hold' for v, n in holds - ids[v.reserveId] = 'checkout' for v, n in checkouts - return ids - # Routing table: map an URL pattern to a handler that will perform actions # or modify areas on the screen. routes = -- 2.11.0