Skip to content

Commit

Permalink
chore: remove old removed method
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Aug 25, 2024
1 parent 0bd0b2a commit ecb80f4
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 41 deletions.
6 changes: 0 additions & 6 deletions packages/core/src/models/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,6 @@ export class StreamDeckBase extends EventEmitter<StreamDeckEvents> implements St
return this.#lcdStripDisplayService.fillLcd(...args)
}

// public async fillEncoderLcd(
// ...args: Parameters<StreamDeck['fillEncoderLcd']>
// ): ReturnType<StreamDeck['fillEncoderLcd']> {
// return this.device.fillEncoderLcd(...args)
// }

public async fillLcdRegion(
...args: Parameters<StreamDeck['fillLcdRegion']>
): ReturnType<StreamDeck['fillLcdRegion']> {
Expand Down
13 changes: 0 additions & 13 deletions packages/core/src/models/plus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,6 @@ class StreamDeckPlusLcdService implements LcdStripDisplayService {
})
}

// public async fillEncoderLcd(index: EncoderIndex, buffer: Uint8Array, sourceOptions: FillImageOptions): Promise<void> {
// if (this.#encoderCount === 0) throw new Error(`There are no encoders`)

// const size = this.LCD_ENCODER_SIZE
// const x = index * size.width

// return this.fillLcdRegion(x, 0, buffer, {
// format: sourceOptions.format,
// width: size.width,
// height: size.height,
// })
// }

public async fillLcdRegion(
index: number,
x: number,
Expand Down
6 changes: 0 additions & 6 deletions packages/core/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ export class StreamDeckProxy implements StreamDeck {
return this.device.fillLcd(...args)
}

// public async fillEncoderLcd(
// ...args: Parameters<StreamDeck['fillEncoderLcd']>
// ): ReturnType<StreamDeck['fillEncoderLcd']> {
// return this.device.fillEncoderLcd(...args)
// }

public async fillLcdRegion(
...args: Parameters<StreamDeck['fillLcdRegion']>
): ReturnType<StreamDeck['fillLcdRegion']> {
Expand Down
8 changes: 0 additions & 8 deletions packages/core/src/services/lcdStripDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ export interface LcdStripDisplayService {
sourceOptions: FillImageOptions,
): Promise<void>

// /**
// * Fills the lcd strip above an encoder
// * @param {number} index The encoder to draw above
// * @param {Buffer} imageBuffer The image to write
// * @param {Object} sourceOptions Options to control the write
// */
// fillEncoderLcd(index: EncoderIndex, imageBuffer: Uint8Array, sourceOptions: FillImageOptions): Promise<void>

/**
* Fill a region of the lcd strip, ignoring the boundaries of the encoders
* @param {number} lcdIndex The id of the lcd strip to draw to
Expand Down
8 changes: 0 additions & 8 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,6 @@ export interface StreamDeck extends EventEmitter<StreamDeckEvents> {
sourceOptions: FillImageOptions,
): Promise<void>

// /**
// * Fills the lcd strip above an encoder
// * @param {number} index The encoder to draw above
// * @param {Buffer} imageBuffer The image to write
// * @param {Object} sourceOptions Options to control the write
// */
// fillEncoderLcd(index: EncoderIndex, imageBuffer: Uint8Array, sourceOptions: FillImageOptions): Promise<void>

/**
* Fill a region of the lcd strip, ignoring the boundaries of the encoders
* @param {number} lcdIndex The id of the lcd strip to draw to
Expand Down

0 comments on commit ecb80f4

Please sign in to comment.