Skip to content

Commit

Permalink
CCA: Remove redundant @param jsdoc annotations
Browse files Browse the repository at this point in the history
This CL removes redundant @param jsdoc annotations. They can be guessed
from their value type or function name.

Bug: b:273315158
Test: Manually.
Change-Id: Ia02513a40adf3d4fc20c294aac950edaeaac1e2c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4587744
Commit-Queue: Dorah Kim <dorahkim@google.com>
Reviewed-by: Wei Lee <wtlee@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1153132}
  • Loading branch information
Dorah authored and Chromium LUCI CQ committed Jun 5, 2023
1 parent 381143d commit ac5cfef
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions ash/webui/camera_app_ui/resources/js/app_window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ export class AppWindow {

/**
* Reports error and makes it visible on Tast side.
*
* @param errorInfo Information of the error.
*/
reportError(errorInfo: ErrorInfo): void {
this.errors.push(errorInfo);
Expand Down
4 changes: 0 additions & 4 deletions ash/webui/camera_app_ui/resources/js/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ export function close(name: ViewName, condition?: unknown): void {

/**
* Handles key pressed event.
*
* @param event Key press event.
*/
export function onKeyPressed(event: KeyboardEvent): void {
const key = util.getKeyboardShortcut(event);
Expand Down Expand Up @@ -211,8 +209,6 @@ export function layoutShownViews(): void {

/**
* Returns whether the view is the top view above all shown view.
*
* @param name Name of the view.
*/
export function isTopMostView(name: ViewName): boolean {
return topmostIndex === findIndex(name);
Expand Down
2 changes: 0 additions & 2 deletions ash/webui/camera_app_ui/resources/js/spoken_msg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export function speak(label: I18nString, ...substitutions: string[]): void {

/**
* Speaks a message.
*
* @param message The message to speak.
*/
export function speakMessage(message: string): void {
// TTS speaks changes of on-screen aria-live elements. Force content changes
Expand Down
1 change: 0 additions & 1 deletion ash/webui/camera_app_ui/resources/js/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export type KeyboardShortcut =
/**
* Returns a shortcut string, such as Ctrl-Alt-A.
*
* @param event Keyboard event.
* @return Shortcut identifier.
*/
export function getKeyboardShortcut(event: KeyboardEvent): KeyboardShortcut {
Expand Down

0 comments on commit ac5cfef

Please sign in to comment.