         infixIndex
     ]
 
-util.sblexArraytoString = (idArray, labelFunction) ->
-    labelFunction = labelFunction or util.lemgramToString
-    return _.map idArray, (lemgram) -> labelFunction lemgram, true
-
-    # TODO: remove this if all is well with the lemgram dropdown
-    # tempArray = $.map(idArray, (lemgram) ->
-    #     labelFunction lemgram, false
-    # )
-    # out = $.map idArray, (lemgram) ->
-    #     isAmbigous = $.grep(tempArray, (tempLemgram) ->
-    #         tempLemgram is labelFunction(lemgram, false)
-    #     ).length > 1
-    #     labelFunction lemgram, isAmbigous
-    # return out
-
-
 util.lemgramRegexp = /\.\.\w+\.\d\d?(\:\d+)?$/
 util.isLemgramId = (lemgram) ->
     lemgram.search(util.lemgramRegexp) isnt -1

            x
        else
            util.prettyNumbers x

util.makeAttrSelect = (groups) ->
    arg_select = $("<select/>")
    $.each groups, (lbl, group) ->
        return if $.isEmptyObject(group)
        optgroup = $("<optgroup/>",
            label: util.getLocaleString(lbl).toLowerCase()
            rel: $.format("localize[%s]", lbl)
        ).appendTo(arg_select)
        $.each group, (key, val) ->
            return if val.displayType is "hidden"
            $("<option/>",
                rel: $.format("localize[%s]", val.label)
            ).val(key).text(util.getLocaleString(val.label) or "").appendTo(optgroup).data "dataProvider", val
            return

        return

    arg_select

util.browserWarn = ->
    $.reject

        within = _(output).compact().join()
        return { defaultwithin : defaultWithin, within : within }

    getTimeInterval : ->
        all = _(@selected)
            .pluck("time")
