remove some unneeded code (#5878)

This commit is contained in:
jiaxin.lai
2019-12-10 19:05:10 +08:00
committed by pandamicro
parent f764fe9fe7
commit b55ac9713b
2 changed files with 0 additions and 41 deletions
-6
View File
@@ -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
View File
@@ -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';