Skip to content

Commit

Permalink
Delete unused remnants of old retweeting and spam detection code.
Browse files Browse the repository at this point in the history
  • Loading branch information
drdrang committed Mar 8, 2012
1 parent e3c2925 commit da14ebb
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions twoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ var MSG_ID;
// The twitter URLs for getting tweets and configuration info.
var BASE_URL = {'home' : 'https://api.twitter.com/1/statuses/home_timeline.json',
'mentions': 'https://api.twitter.com/1/statuses/mentions.json',
'retweets': 'https://api.twitter.com/1/statuses/retweeted_by_me.json',
'friends': 'https://api.twitter.com/1/friends/ids.json'};
'retweets': 'https://api.twitter.com/1/statuses/retweeted_by_me.json'};
var CONFIG_URL = 'http://api.twitter.com/1/help/configuration.json';
// The list of message IDs I've retweeted.
var RTID = new Array();
Expand Down Expand Up @@ -136,7 +135,6 @@ $.fn.gettweets = function(){
var homeURL = BASE_URL['home'] + '?include_entities=1&count=' + COUNT;
var mentionsURL = BASE_URL['mentions'] + '?include_entities=1&count=' + COUNT;
var retweetsURL = BASE_URL['retweets'] + '?include_entities=1&count=' + COUNT;
// var friendsURL = BASE_URL['friends'] + '?cursor=-1&screen_name=' + SNAME;
if (LAST_UPDATE != null) homeURL += "&since_id=" + LAST_UPDATE;
if (LAST_UPDATE != null) retweetsURL += "&since_id=" + LAST_UPDATE;

Expand Down Expand Up @@ -421,17 +419,6 @@ function retweet(msg_id) {
refreshStatusField(); },
'json');
}
// The following is legacy code for old-style retweeting.
// MSG_ID = msg_id;
// $.getJSON("http://api.twitter.com/1/statuses/show/" + msg_id + ".json",
// function(data){
// start = 'RT @' + data.user.screen_name + ': ' + data.text + ' ';
// $("#status").val(start);
// $("#status").focus();
// $("#status").caret(start.length, start.length);
// charCountdown();
// }
// );
}

function setStatus(status_text) {
Expand Down

0 comments on commit da14ebb

Please sign in to comment.