Permalink
Browse files

Clean up unused code and console.log statements.

Remove debug code.
Clean up comments.
  • Loading branch information...
1 parent f9d9913 commit 21e69a2d68d361060d37b2063abce41c64a4b89e @tupton tupton committed Dec 10, 2011
Showing with 1 addition and 12 deletions.
  1. +1 −12 twitter.coffee
View
@@ -14,13 +14,6 @@ class Collector
parts = token_file.split("\n")
token = parts[0]
token_secret = parts[1]
- console.log(token)
- console.log(token_secret)
- ###
- twitter.apiCall 'GET', '/statuses/home_timeline.json', {token: {oauth_token_secret: token_secret, oauth_token: token}}, (error, result) ->
- console.log(error, result)
- return
- ###
twit = new twitter({
consumer_key: 'NmbnSBsbGfER6nYuoe7aWw',
consumer_secret: 'fiZriZSswj6H3gQZolgwB0ct0mHDFpOilo0sUUdEQ',
@@ -29,10 +22,8 @@ class Collector
})
twit.get '/statuses/home_timeline.json', {}, (err, data) =>
items = []
- console.log(err)
- console.log(data)
if err
- return
+ return # TODO Error handling
for item in data
console.log(item)
@@ -52,5 +43,3 @@ exports.getToken = getToken = ->
if util.fileExists(TOKEN_FILE)
return fs.readFileSync(TOKEN_FILE, 'utf8')
-t = new Collector(new store.Store)
-t.update()

0 comments on commit 21e69a2

Please sign in to comment.