[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Make some changes suggested by flex-pmd.
commit 8774963d90c02e17470ecf507e8dee0c7ef5152d
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Sun Jul 17 19:06:40 2011 -0700
Make some changes suggested by flex-pmd.
---
swfcat.as | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/swfcat.as b/swfcat.as
index 80916c8..4dea237 100644
--- a/swfcat.as
+++ b/swfcat.as
@@ -37,9 +37,9 @@ package
private const FACILITATOR_POLL_INTERVAL:int = 1000;
// Bytes per second. Set to undefined to disable limit.
- public const RATE_LIMIT:Number = undefined;
+ public static const RATE_LIMIT:Number = undefined;
// Seconds.
- private const RATE_LIMIT_HISTORY:Number = 5.0;
+ private static const RATE_LIMIT_HISTORY:Number = 5.0;
/* TextField for debug output. */
private var output_text:TextField;
@@ -84,8 +84,6 @@ package
private function loaderinfo_complete(e:Event):void
{
- var fac_spec:String;
-
if (this.loaderInfo.parameters["debug"] || this.loaderInfo.parameters["client"]) {
output_text = new TextField();
output_text.width = stage.stageWidth;
@@ -122,7 +120,7 @@ package
default. Returns null on error. */
private function get_param_addr(param:String, default_addr:Object):Object
{
- var spec:String, addr:Object;
+ var spec:String;
spec = this.loaderInfo.parameters[param];
if (spec)
@@ -238,7 +236,6 @@ package
var fac_url:String;
var loader:URLLoader;
var request:URLRequest;
- var variables:URLVariables;
loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, function (e:Event):void {
@@ -257,7 +254,7 @@ package
+ ":" + encodeURIComponent(fac_addr.port) + "/";
request = new URLRequest(fac_url);
request.method = URLRequestMethod.POST;
- request.data = new URLVariables;
+ request.data = new URLVariables();
request.data["client"] = rs.id;
puts("Facilitator: connecting to " + fac_url + ".");
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits