mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
remove some unneeded code (#5878)
This commit is contained in:
@@ -7,12 +7,6 @@ import { replaceProperty, removeProperty } from '../utils/deprecated';
|
||||
import { Layers } from './layers';
|
||||
import { Node } from './node';
|
||||
|
||||
// js.get(BaseNode.prototype, 'childrenCount', function () {
|
||||
// cc.warn("`childrenCount` is deprecated, please use `node.children.length` instead.");
|
||||
// // @ts-ignore
|
||||
// return this.children.length;
|
||||
// });
|
||||
|
||||
replaceProperty(BaseNode.prototype, 'BaseNode', [
|
||||
{
|
||||
'name': 'childrenCount',
|
||||
|
||||
@@ -35,41 +35,6 @@ import * as misc from './misc';
|
||||
* 用于处理文件与目录的路径的模块
|
||||
*/
|
||||
import * as path from './path';
|
||||
import { replaceProperty } from './deprecated';
|
||||
import * as math from '../math';
|
||||
|
||||
// replaceProperty(misc,'misc',[
|
||||
// {
|
||||
// name: 'clampf',
|
||||
// newName: 'clamp',
|
||||
// target: math,
|
||||
// targetName: 'math'
|
||||
// },
|
||||
// {
|
||||
// name: 'clamp01',
|
||||
// newName: 'clamp01',
|
||||
// target: math,
|
||||
// targetName: 'math'
|
||||
// },
|
||||
// {
|
||||
// name: 'lerp',
|
||||
// newName: 'lerp',
|
||||
// target: math,
|
||||
// targetName: 'math'
|
||||
// },
|
||||
// {
|
||||
// name: 'degreesToRadians',
|
||||
// newName: 'toRadian',
|
||||
// target: math,
|
||||
// targetName: 'math'
|
||||
// },
|
||||
// {
|
||||
// name: 'radiansToDegrees',
|
||||
// newName: 'toDegree',
|
||||
// target: math,
|
||||
// targetName: 'math'
|
||||
// },
|
||||
// ]);
|
||||
|
||||
export * from './deprecated';
|
||||
export * from './text-utils';
|
||||
|
||||
Reference in New Issue
Block a user