class AsciiIo.DataUnpacker
  unpack: (base64BzippedData, callback) ->
    data = atob base64BzippedData

    if data[0] == 'B' and data[1] == 'Z'
      if window.Worker
        worker = new Worker(window.unpackWorkerPath)
        worker.onmessage = (event) => callback event.data
        worker.postMessage data
      else
        data = ArchUtils.bz2.decode data
        callback data
    else
      data

class AsciiIo.DataUnpacker
  unpack: (base64BzippedData, callback) ->
    bzippedData = atob base64BzippedData

    if window.Worker
      worker = new Worker(window.unpackWorkerPath)
      worker.onmessage = (event) => callback event.data
      worker.postMessage bzippedData
    else
      data = ArchUtils.bz2.decode bzippedData
      callback data

Revert "Handle both bzipped and non-bzipped data in DataUnpacker"
Revert "Handle both bzipped and non-bzipped data in DataUnpacker"

This reverts commit 05d3970e399d676fbe856633ffc3ac78fccf6191.
