Title: [284234] trunk/Source/WebCore
Revision
284234
Author
[email protected]
Date
2021-10-14 22:04:27 -0700 (Thu, 14 Oct 2021)

Log Message

Add UNUSED_PARAM to WebSpeechRecognizerTaskMock.mm
https://bugs.webkit.org/show_bug.cgi?id=231788

Reviewed by Simon Fraser.

* Modules/speech/cocoa/WebSpeechRecognizerTaskMock.mm:
(-[WebSpeechRecognizerTaskMock initWithIdentifier:locale:doMultipleRecognitions:reportInterimResults:maxAlternatives:delegateCallback:]):
(-[WebSpeechRecognizerTaskMock audioSamplesAvailable:]):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (284233 => 284234)


--- trunk/Source/WebCore/ChangeLog	2021-10-15 04:47:46 UTC (rev 284233)
+++ trunk/Source/WebCore/ChangeLog	2021-10-15 05:04:27 UTC (rev 284234)
@@ -1,3 +1,14 @@
+2021-10-14  Sihui Liu  <[email protected]>
+
+        Add UNUSED_PARAM to WebSpeechRecognizerTaskMock.mm
+        https://bugs.webkit.org/show_bug.cgi?id=231788
+
+        Reviewed by Simon Fraser.
+
+        * Modules/speech/cocoa/WebSpeechRecognizerTaskMock.mm:
+        (-[WebSpeechRecognizerTaskMock initWithIdentifier:locale:doMultipleRecognitions:reportInterimResults:maxAlternatives:delegateCallback:]):
+        (-[WebSpeechRecognizerTaskMock audioSamplesAvailable:]):
+
 2021-10-14  Aditya Keerthi  <[email protected]>
 
         [iOS] Support accent-color for controls without text

Modified: trunk/Source/WebCore/Modules/speech/cocoa/WebSpeechRecognizerTaskMock.mm (284233 => 284234)


--- trunk/Source/WebCore/Modules/speech/cocoa/WebSpeechRecognizerTaskMock.mm	2021-10-15 04:47:46 UTC (rev 284233)
+++ trunk/Source/WebCore/Modules/speech/cocoa/WebSpeechRecognizerTaskMock.mm	2021-10-15 05:04:27 UTC (rev 284234)
@@ -36,6 +36,10 @@
 
 - (instancetype)initWithIdentifier:(SpeechRecognitionConnectionClientIdentifier)identifier locale:(NSString*)localeIdentifier doMultipleRecognitions:(BOOL)continuous reportInterimResults:(BOOL)interimResults maxAlternatives:(unsigned long)alternatives delegateCallback:(void(^)(const SpeechRecognitionUpdate&))callback
 {
+    UNUSED_PARAM(localeIdentifier);
+    UNUSED_PARAM(interimResults);
+    UNUSED_PARAM(alternatives);
+
     if (!(self = [super init]))
         return nil;
 
@@ -51,6 +55,8 @@
 
 - (void)audioSamplesAvailable:(CMSampleBufferRef)sampleBuffer
 {
+    UNUSED_PARAM(sampleBuffer);
+    
     if (!_hasSentSpeechStart) {
         _hasSentSpeechStart = true;
         _delegateCallback(SpeechRecognitionUpdate::create(_identifier, SpeechRecognitionUpdateType::SpeechStart));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to