@@ -145,13 +145,8 @@ pub fn parse_replay(data: Uint8Array, options: JsValue) -> Result<JsValue, JsVal
145145
146146 let ( map_width, map_height) = replay. map_dimensions ( ) ;
147147
148- // Convert all players
149148 let all_players: Vec < PlayerInfo > = replay. slots ( ) . iter ( ) . map ( PlayerInfo :: from) . collect ( ) ;
150-
151- // Get active players (non-empty, non-observers)
152149 let active_players: Vec < PlayerInfo > = replay. players ( ) . map ( PlayerInfo :: from) . collect ( ) ;
153-
154- // Get observers
155150 let observers: Vec < PlayerInfo > = replay. observers ( ) . map ( PlayerInfo :: from) . collect ( ) ;
156151
157152 let replay_info = ReplayInfo {
@@ -172,7 +167,6 @@ pub fn parse_replay(data: Uint8Array, options: JsValue) -> Result<JsValue, JsVal
172167 observers,
173168 } ;
174169
175- // Serialize to JsValue using serde-wasm-bindgen
176170 serde_wasm_bindgen:: to_value ( & replay_info)
177171 . map_err ( |e| JsValue :: from_str ( & format ! ( "Serialization failed: {}" , e) ) )
178172}
@@ -201,7 +195,6 @@ mod tests {
201195 use js_sys:: Uint8Array ;
202196 use wasm_bindgen_test:: * ;
203197
204- // Test data (this would be actual replay file bytes in practice)
205198 const LEGACY_REPLAY : & [ u8 ] = include_bytes ! ( "../../broodrep/testdata/things.rep" ) ;
206199 const SCR_121_REPLAY : & [ u8 ] = include_bytes ! ( "../../broodrep/testdata/scr_replay.rep" ) ;
207200
@@ -251,7 +244,6 @@ mod tests {
251244 fn test_parse_with_custom_options ( ) {
252245 let data = Uint8Array :: from ( LEGACY_REPLAY ) ;
253246
254- // Create options as a plain JavaScript object
255247 let options = DecompressionOptions {
256248 max_decompressed_size : Some ( 200 * 1024 * 1024 ) , // 200MB
257249 max_compression_ratio : Some ( 1000.0 ) , // Allow higher compression ratios
0 commit comments