@@ -1150,9 +1150,6 @@ private void QueryHistory()
11501150
11511151 private async Task QueryResultsAsync ( bool searchDelay , bool isReQuery = false , bool reSelect = true )
11521152 {
1153- // TODO: Remove debug codes.
1154- System . Diagnostics . Debug . WriteLine ( "!!!QueryResults" ) ;
1155-
11561153 _updateSource ? . Cancel ( ) ;
11571154
11581155 var query = ConstructQuery ( QueryText , Settings . CustomShortcuts , Settings . BuiltinShortcuts ) ;
@@ -1233,17 +1230,6 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
12331230 true => Task . CompletedTask
12341231 } ) . ToArray ( ) ;
12351232
1236- // TODO: Remove debug codes.
1237- System . Diagnostics . Debug . Write ( $ "!!!Querying { query . RawQuery } : search delay { searchDelay } ") ;
1238- foreach ( var plugin in plugins )
1239- {
1240- if ( ! plugin . Metadata . Disabled )
1241- {
1242- System . Diagnostics . Debug . Write ( $ "{ plugin . Metadata . Name } , ") ;
1243- }
1244- }
1245- System . Diagnostics . Debug . Write ( "\n " ) ;
1246-
12471233 try
12481234 {
12491235 // Check the code, WhenAll will translate all type of IEnumerable or Collection to Array, so make an array at first
@@ -1281,14 +1267,8 @@ async Task QueryTaskAsync(PluginPair plugin, CancellationToken token)
12811267 _ => 150
12821268 } ;
12831269
1284- // TODO: Remove debug codes.
1285- System . Diagnostics . Debug . WriteLine ( $ "!!!{ plugin . Metadata . Name } Waiting { searchDelayTime } ms") ;
1286-
12871270 await Task . Delay ( searchDelayTime , token ) ;
12881271
1289- // TODO: Remove debug codes.
1290- System . Diagnostics . Debug . WriteLine ( $ "!!!{ plugin . Metadata . Name } Waited { searchDelayTime } ms") ;
1291-
12921272 if ( token . IsCancellationRequested )
12931273 return ;
12941274 }
@@ -1297,8 +1277,6 @@ async Task QueryTaskAsync(PluginPair plugin, CancellationToken token)
12971277 // Task.Yield will force it to run in ThreadPool
12981278 await Task . Yield ( ) ;
12991279
1300- // TODO: Remove debug codes.
1301- System . Diagnostics . Debug . WriteLine ( $ "!!!{ query . RawQuery } Querying { plugin . Metadata . Name } ") ;
13021280 IReadOnlyList < Result > results =
13031281 await PluginManager . QueryForPluginAsync ( plugin , query , token ) ;
13041282
0 commit comments