Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ecb80f4

Browse files
committedAug 25, 2024··
chore: remove old removed method
1 parent 0bd0b2a commit ecb80f4

File tree

5 files changed

+0
-41
lines changed

5 files changed

+0
-41
lines changed
 

‎packages/core/src/models/base.ts

-6
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,6 @@ export class StreamDeckBase extends EventEmitter<StreamDeckEvents> implements St
236236
return this.#lcdStripDisplayService.fillLcd(...args)
237237
}
238238

239-
// public async fillEncoderLcd(
240-
// ...args: Parameters<StreamDeck['fillEncoderLcd']>
241-
// ): ReturnType<StreamDeck['fillEncoderLcd']> {
242-
// return this.device.fillEncoderLcd(...args)
243-
// }
244-
245239
public async fillLcdRegion(
246240
...args: Parameters<StreamDeck['fillLcdRegion']>
247241
): ReturnType<StreamDeck['fillLcdRegion']> {

‎packages/core/src/models/plus.ts

-13
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,6 @@ class StreamDeckPlusLcdService implements LcdStripDisplayService {
114114
})
115115
}
116116

117-
// public async fillEncoderLcd(index: EncoderIndex, buffer: Uint8Array, sourceOptions: FillImageOptions): Promise<void> {
118-
// if (this.#encoderCount === 0) throw new Error(`There are no encoders`)
119-
120-
// const size = this.LCD_ENCODER_SIZE
121-
// const x = index * size.width
122-
123-
// return this.fillLcdRegion(x, 0, buffer, {
124-
// format: sourceOptions.format,
125-
// width: size.width,
126-
// height: size.height,
127-
// })
128-
// }
129-
130117
public async fillLcdRegion(
131118
index: number,
132119
x: number,

‎packages/core/src/proxy.ts

-6
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,6 @@ export class StreamDeckProxy implements StreamDeck {
9292
return this.device.fillLcd(...args)
9393
}
9494

95-
// public async fillEncoderLcd(
96-
// ...args: Parameters<StreamDeck['fillEncoderLcd']>
97-
// ): ReturnType<StreamDeck['fillEncoderLcd']> {
98-
// return this.device.fillEncoderLcd(...args)
99-
// }
100-
10195
public async fillLcdRegion(
10296
...args: Parameters<StreamDeck['fillLcdRegion']>
10397
): ReturnType<StreamDeck['fillLcdRegion']> {

‎packages/core/src/services/lcdStripDisplay.ts

-8
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ export interface LcdStripDisplayService {
1313
sourceOptions: FillImageOptions,
1414
): Promise<void>
1515

16-
// /**
17-
// * Fills the lcd strip above an encoder
18-
// * @param {number} index The encoder to draw above
19-
// * @param {Buffer} imageBuffer The image to write
20-
// * @param {Object} sourceOptions Options to control the write
21-
// */
22-
// fillEncoderLcd(index: EncoderIndex, imageBuffer: Uint8Array, sourceOptions: FillImageOptions): Promise<void>
23-
2416
/**
2517
* Fill a region of the lcd strip, ignoring the boundaries of the encoders
2618
* @param {number} lcdIndex The id of the lcd strip to draw to

‎packages/core/src/types.ts

-8
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,6 @@ export interface StreamDeck extends EventEmitter<StreamDeckEvents> {
115115
sourceOptions: FillImageOptions,
116116
): Promise<void>
117117

118-
// /**
119-
// * Fills the lcd strip above an encoder
120-
// * @param {number} index The encoder to draw above
121-
// * @param {Buffer} imageBuffer The image to write
122-
// * @param {Object} sourceOptions Options to control the write
123-
// */
124-
// fillEncoderLcd(index: EncoderIndex, imageBuffer: Uint8Array, sourceOptions: FillImageOptions): Promise<void>
125-
126118
/**
127119
* Fill a region of the lcd strip, ignoring the boundaries of the encoders
128120
* @param {number} lcdIndex The id of the lcd strip to draw to

0 commit comments

Comments
 (0)
Please sign in to comment.