Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit 780c6c8

Browse files
committed
remove unused code
1 parent c8e3763 commit 780c6c8

File tree

3 files changed

+7
-20
lines changed

3 files changed

+7
-20
lines changed

src/models/controller-settings.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export * from './controller-info';
2-
export * from './controller-settings';
32
export * from './draw-text-data';
43
export * from './last-updated';
54
export * from './network';
65
export * from './position';
76
export * from './room-weather';
7+
export * from './settings';

src/smart-display-controller.ts

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
DrawTextDataEasy,
99
LastUpdated,
1010
FontWeight,
11-
Position
11+
Position,
1212
} from './models';
1313
import { MqttHelper } from './helper';
1414

@@ -93,13 +93,6 @@ export class SmartDisplayController {
9393
}
9494
}
9595

96-
/*changeSettings(settings: ControllerSettings): void {
97-
this.client.publish(
98-
'smartDisplay/client/in/changeSettings',
99-
JSON.stringify(settings)
100-
);
101-
}*/
102-
10396
show(): void {
10497
this.client.publish('smartDisplay/client/in/show', '');
10598
}
@@ -115,7 +108,7 @@ export class SmartDisplayController {
115108
x: data.position.x,
116109
y: data.position.y,
117110
color: color.rgb().array(),
118-
font: data.fontWeight ?? FontWeight.Normal
111+
font: data.fontWeight ?? FontWeight.Normal,
119112
};
120113

121114
this.client.publish(
@@ -132,7 +125,7 @@ export class SmartDisplayController {
132125
y0: start.y,
133126
x1: end.x,
134127
y1: end.y,
135-
color: color.rgb().array()
128+
color: color.rgb().array(),
136129
};
137130

138131
this.client.publish(
@@ -147,7 +140,7 @@ export class SmartDisplayController {
147140
const dataOut = {
148141
x: position.x,
149142
y: position.y,
150-
color: color.rgb().array()
143+
color: color.rgb().array(),
151144
};
152145

153146
this.client.publish(
@@ -159,7 +152,7 @@ export class SmartDisplayController {
159152
fill(hexColor: string): void {
160153
const color = Color(hexColor);
161154
const dataOut = {
162-
color: color.rgb()
155+
color: color.rgb(),
163156
};
164157

165158
this.client.publish(
@@ -172,7 +165,7 @@ export class SmartDisplayController {
172165
this._powerStatus = status;
173166

174167
const dataOut = {
175-
on: status
168+
on: status,
176169
};
177170
this.client.publish(
178171
'smartDisplay/client/in/power',

0 commit comments

Comments
 (0)