« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js54
1 files changed, 0 insertions, 54 deletions
diff --git a/index.js b/index.js
index 5f592df..6a3c8f8 100644
--- a/index.js
+++ b/index.js
@@ -15,61 +15,7 @@ process.on('unhandledRejection', error => {
   process.exit(1)
 })
 
-class InternalApp extends EventEmitter {
-  constructor() {
-    super()
-    this.player = null
-  }
-
-  async setup() {
-    this.player = await getPlayer()
-  }
-
-  async startPlaying(arg) {
-    this.player.playFile(await this.download(arg))
-  }
-
-  stopPlaying() {
-    this.player.kill()
-  }
-
-  seekAhead(seconds) {
-    this.player.seekAhead(seconds)
-  }
-
-  seekBehind(seconds) {
-    this.player.seekBehind(seconds)
-  }
-
-  togglePause() {
-    this.player.togglePause()
-  }
-
-  download(arg) {
-    return getDownloaderFor(arg)(arg)
-  }
-}
-
 async function main() {
-  /*
-  const internalApp = new InternalApp()
-  await internalApp.setup()
-
-  await internalApp.startPlaying('http://billwurtz.com/cable-television.mp3')
-  await new Promise(r => setTimeout(r, 2000))
-  internalApp.togglePause()
-  await new Promise(r => setTimeout(r, 1000))
-  internalApp.togglePause()
-  await new Promise(r => setTimeout(r, 2000))
-  internalApp.stopPlaying()
-  */
-
-  /*
-  for (const item of require('./flat.json').items) {
-    await internalApp.download(item.downloaderArg)
-  }
-  */
-
   const interfacer = new CommandLineInterfacer()
   const size = await interfacer.getScreenSize()