Skip to content

Commit acbbf63

Browse files
committed
chore: cleanup
1 parent e92f267 commit acbbf63

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/label-common.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,6 @@ export const needSetText = function (target: any, propertyKey: string | Symbol,
4141
return result;
4242
};
4343
};
44-
export const needTextSet = function (target: any, propertyKey: string | Symbol, descriptor: PropertyDescriptor) {
45-
const originalMethod = descriptor.value;
46-
descriptor.value = function (...args: any[]) {
47-
if (!this.mCanChangeText) {
48-
this._needFontComputation = true;
49-
return;
50-
}
51-
return originalMethod.apply(this, args);
52-
};
53-
};
54-
5544
@CSSType('HTMLLabel')
5645
export abstract class LabelBase extends TNLabel implements LabelViewDefinition {
5746
//@ts-ignore

0 commit comments

Comments
 (0)