From f4512d89f7cc991e3147d9bd0b84086f463a59b1 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 4 Aug 2010 10:42:06 +0000 Subject: テストコード削除 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38163 d0d07461-0603-4401-acd4-de1884942a52 --- twittperator.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'twittperator.js') diff --git a/twittperator.js b/twittperator.js index 2474a02..74fd51d 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1104,11 +1104,6 @@ let host = "chirpstream.twitter.com"; let path = "/2b/user.json"; - if (0) { - host = "api.twitter.com"; - host = "/1/statuses/mentions.json"; - } - let {username, password} = getUserInfo() || {}; if (!(username && password)) return liberator.echoerr('Not found basic authorization setting in Firefox'); @@ -1128,13 +1123,6 @@ sos.setOutputStream(os); let params = ["Authorization: Basic " + btoa(username + ":" + password)]; - if (0) { - let param = tw.getUrl("http://" + host + path); - let params = param.split(/\?/)[1].split(/&/).map(function (it) - let ([n, v] = it.split(/=/)) - n + ": " + decodeURIComponent(v) - ); - } let get = [ "GET " + path + " HTTP/1.1", -- cgit v1.2.3