cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/2] cordova-plugin-file git commit: Code cleanup, whitespace
Date Tue, 10 Feb 2015 01:37:02 GMT
Code cleanup, whitespace


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/5cfe7a05
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/5cfe7a05
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/5cfe7a05

Branch: refs/heads/master
Commit: 5cfe7a05b50c4139c42c0f7d8f4ce0abaa5c3eb1
Parents: 6f630b4
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Mon Feb 9 17:34:39 2015 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Mon Feb 9 17:34:39 2015 -0800

----------------------------------------------------------------------
 src/wp/File.cs | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/5cfe7a05/src/wp/File.cs
----------------------------------------------------------------------
diff --git a/src/wp/File.cs b/src/wp/File.cs
index 1ada92d..eff802f 100644
--- a/src/wp/File.cs
+++ b/src/wp/File.cs
@@ -343,7 +343,6 @@ namespace WPCordovaClassLib.Cordova.Commands
                     }
                     return escaped;
                 }
-
             }
 
             public bool IsResource { get; set; }
@@ -656,7 +655,6 @@ namespace WPCordovaClassLib.Cordova.Commands
                 {
                     startPos = Math.Min((int)reader.Length, startPos);
                 }
-
                 if (endPos > 0)
                 {
                     endPos = Math.Min((int)reader.Length, endPos);
@@ -666,9 +664,7 @@ namespace WPCordovaClassLib.Cordova.Commands
                     endPos = Math.Max(endPos + (int)reader.Length, 0);
                 }
 
-
                 buffer = new byte[endPos - startPos];
-
                 reader.Seek(startPos, SeekOrigin.Begin);
                 reader.Read(buffer, 0, buffer.Length);
             }
@@ -716,7 +712,6 @@ namespace WPCordovaClassLib.Cordova.Commands
             int startPos = int.Parse(optStrings[1]);
             int endPos = int.Parse(optStrings[2]);
             string callbackId = optStrings[3];
-            //DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR), callbackId);
 
             try
             {
@@ -731,7 +726,6 @@ namespace WPCordovaClassLib.Cordova.Commands
                     }
                     
                     byte[] buffer = readFileBytes(filePath, startPos, endPos, isoFile);
-
                     result = System.Text.Encoding.UTF8.GetString(buffer, 0, buffer.Length);
                     
                 }
@@ -772,7 +766,6 @@ namespace WPCordovaClassLib.Cordova.Commands
                     byte[] buffer = this.readFileBytes(filePath, startPos, endPos, isoFile);
                     text = encoding.GetString(buffer, 0, buffer.Length);
                 }
-
                 DispatchCommandResult(new PluginResult(PluginResult.Status.OK, text), callbackId);
             }
             catch (Exception ex)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message