mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 09:39:58 +00:00
Fix unused parameters
This commit is contained in:
@@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
|
||||
, VERSION: "1.0.07"
|
||||
|
||||
, setLoggerLevel (level: number) {
|
||||
, setLoggerLevel (_level: number) {
|
||||
console.info("STUB :: cast.framework.setLoggerLevel");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user