From: Steven Chan Date: Wed, 3 Sep 2014 22:05:07 +0000 (-0700) Subject: Remove unused item_status() function X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ab290e09ca6887a9c993c6a2a16c6a94f55907b2;p=contrib%2Foverdrive-eg-opac.git Remove unused item_status() function Signed-off-by: Steven Chan --- 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 =