@@ -343,7 +343,6 @@ public string NativeURL
343343 }
344344 return escaped ;
345345 }
346-
347346 }
348347
349348 public bool IsResource { get ; set ; }
@@ -656,7 +655,6 @@ private byte[] readFileBytes(string filePath,int startPos,int endPos, IsolatedSt
656655 {
657656 startPos = Math . Min ( ( int ) reader . Length , startPos ) ;
658657 }
659-
660658 if ( endPos > 0 )
661659 {
662660 endPos = Math . Min ( ( int ) reader . Length , endPos ) ;
@@ -666,9 +664,7 @@ private byte[] readFileBytes(string filePath,int startPos,int endPos, IsolatedSt
666664 endPos = Math . Max ( endPos + ( int ) reader . Length , 0 ) ;
667665 }
668666
669-
670667 buffer = new byte [ endPos - startPos ] ;
671-
672668 reader . Seek ( startPos , SeekOrigin . Begin ) ;
673669 reader . Read ( buffer , 0 , buffer . Length ) ;
674670 }
@@ -716,7 +712,6 @@ public void readAsBinaryString(string options)
716712 int startPos = int . Parse ( optStrings [ 1 ] ) ;
717713 int endPos = int . Parse ( optStrings [ 2 ] ) ;
718714 string callbackId = optStrings [ 3 ] ;
719- //DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR), callbackId);
720715
721716 try
722717 {
@@ -731,7 +726,6 @@ public void readAsBinaryString(string options)
731726 }
732727
733728 byte [ ] buffer = readFileBytes ( filePath , startPos , endPos , isoFile ) ;
734-
735729 result = System . Text . Encoding . UTF8 . GetString ( buffer , 0 , buffer . Length ) ;
736730
737731 }
@@ -772,7 +766,6 @@ public void readAsText(string options)
772766 byte [ ] buffer = this . readFileBytes ( filePath , startPos , endPos , isoFile ) ;
773767 text = encoding . GetString ( buffer , 0 , buffer . Length ) ;
774768 }
775-
776769 DispatchCommandResult ( new PluginResult ( PluginResult . Status . OK , text ) , callbackId ) ;
777770 }
778771 catch ( Exception ex )
0 commit comments