File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
plugins/system/android/com/foxdebug/system Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -639,7 +639,6 @@ export default class EditorFile {
639639 }
640640 }
641641
642- // native compares
643642 try {
644643 const fs = fsOperation ( this . uri ) ;
645644 const oldText = await fs . readFile ( this . encoding ) ;
Original file line number Diff line number Diff line change @@ -677,16 +677,6 @@ private void compareFileText(
677677 callback .error ("File is not readable" );
678678 return ;
679679 }
680-
681- // Check file length before reading
682- // Note: For multi-byte encodings, file.length() (bytes) won't equal text length (chars),
683- // but if currentText is longer than file bytes, we know they're different
684- long fileBytes = file .length ();
685- long currentTextBytes = currentText .getBytes (charset ).length ;
686- if (fileBytes != currentTextBytes ) {
687- callback .success (1 ); // Changed
688- return ;
689- }
690680
691681 Path path = file .toPath ();
692682 fileContent = new String (Files .readAllBytes (path ), charset );
You can’t perform that action at this time.
0 commit comments