Fix unused parameters

This commit is contained in:
hensm
2019-08-16 21:09:35 +01:00
parent e2eca07876
commit 14d3b2c833
21 changed files with 95 additions and 103 deletions

View File

@@ -71,7 +71,7 @@ export default class GoogleCastLauncher extends HTMLElement {
shadow.append(icon, style);
this.addEventListener("click", ev => {
this.addEventListener("click", () => {
console.info("<google-cast-launcher> onClick");
});
}

View File

@@ -5,7 +5,7 @@ import CastSession from "./CastSession";
export default class CastContext extends EventTarget {
public endCurrentSession (stopCasting: boolean): void {
public endCurrentSession (_stopCasting: boolean): void {
console.info("STUB :: CastContext#endCurrentSession");
}
@@ -29,7 +29,7 @@ export default class CastContext extends EventTarget {
console.info("STUB :: CastContext#requestSession");
}
public setOptions (options: CastOptions): void {
public setOptions (_options: CastOptions): void {
console.info("STUB :: CastContext#setOptions");
}
}

View File

@@ -9,19 +9,19 @@ type MessageListener = (namespace: string, message: string) => void;
export default class CastSession extends EventTarget {
constructor (sessionObj: cast.Session, state: string) {
constructor (_sessionObj: cast.Session, _state: string) {
super();
console.info("STUB :: CastSession#constructor");
}
public addMessageListener (
namespace: string
, listener: MessageListener): void {
_namespace: string
, _listener: MessageListener): void {
console.info("STUB :: CastSession#addMessageListener");
}
public endSession (stopCasting: boolean): void {
public endSession (_stopCasting: boolean): void {
console.info("STUB :: CastSession#endSession");
}
@@ -76,32 +76,32 @@ export default class CastSession extends EventTarget {
}
// @ts-ignore
public loadMedia (loadRequest: cast.media.LoadRequest): Promise<string> {
public loadMedia (_loadRequest: cast.media.LoadRequest): Promise<string> {
console.info("STUB :: CastSession#loadMedia");
}
public removeMessageListener (
namespace: string
, listener: MessageListener): void {
_namespace: string
, _listener: MessageListener): void {
console.info("STUB :: CastSession#removeMessageListener");
}
public sendMessage (
namespace: string
_namespace: string
// @ts-ignore
, data: any): Promise<string> {
, _data: any): Promise<string> {
console.info("STUB :: CastSession#sendMessage");
}
// @ts-ignore
public setMute (isMute: boolean): Promise<string> {
public setMute (_isMute: boolean): Promise<string> {
console.info("STUB :: CastSession#setMute");
}
// @ts-ignore
public setVolume (volume: number): Promise<string> {
public setVolume (_volume: number): Promise<string> {
console.info("STUB :: CastSession#setVolume");
}
}

View File

@@ -4,7 +4,7 @@ import RemotePlayer from "./RemotePlayer";
export default class RemotePlayerController extends EventTarget {
constructor (player: RemotePlayer) {
constructor (_player: RemotePlayer) {
super();
console.info("STUB :: RemotePlayerController#constructor");
}

View File

@@ -54,7 +54,7 @@ export default {
, VERSION: "1.0.07"
, setLoggerLevel (level: number) {
, setLoggerLevel (_level: number) {
console.info("STUB :: cast.framework.setLoggerLevel");
}
};