@@ -725,14 +725,6 @@ _NativeCommandData readNativeUICommandMemory(double contextId) {
725725 return _NativeCommandData (flag, commandLength, rawMemory);
726726}
727727
728- bool _isStartRecording (UICommand ? command) {
729- return command? .type == UICommandType .startRecordingCommand;
730- }
731-
732- // bool _isFinishedRecording(UICommand? command) {
733- // return command?.type == UICommandType.finishRecordingCommand;
734- // }
735-
736728void flushUICommand (WebFViewController view, Pointer <NativeBindingObject > selfPointer, int reason) {
737729 assert (_allocatedPages.containsKey (view.contextId));
738730 if (view.disposed) return ;
@@ -742,27 +734,7 @@ void flushUICommand(WebFViewController view, Pointer<NativeBindingObject> selfPo
742734 if (rawCommands.rawMemory.isNotEmpty) {
743735 commands = nativeUICommandToDart (rawCommands.rawMemory, rawCommands.length, view.contextId);
744736
745- bool isBeginningRecording = _isStartRecording (commands.isEmpty ? null : commands.first );
737+ execUICommands (view, commands);
746738 SchedulerBinding .instance.scheduleFrame ();
747- // if (isBeginningRecording) {
748- // assert(view.pendingUICommands.isEmpty());
749- // }
750-
751- // view.pendingUICommands.add(commands, rawCommands.flag);
752- view.pendingUICommands.add (commands);
753739 }
754-
755- // bool isFinishedRecording = commands != null ? _isFinishedRecording(commands.isEmpty ? null : commands.last) : false;
756-
757- // if (shouldExecUICommands(view, isFinishedRecording, selfPointer, view.pendingUICommands.commandFlag, reason)) {
758- // if (view.pendingUICommands.size() > 0) {
759- // execUICommands(view, view.pendingUICommands);
760- // view.pendingUICommands.clear();
761- // }
762- if (view.pendingUICommands.isNotEmpty) {
763- execUICommands (view, view.pendingUICommands);
764- view.pendingUICommands.clear ();
765- }
766-
767- // }
768740}
0 commit comments