@@ -45,7 +45,6 @@ export type Parameter = {
4545type ClassMethodDefBlock = Blockly . Block & ClassMethodDefMixin & Blockly . BlockSvg ;
4646interface ClassMethodDefMixin extends ClassMethodDefMixinType {
4747 mrcCanChangeSignature : boolean ,
48- mrcCanDelete : boolean ,
4948 mrcReturnType : string ,
5049 mrcParameters : Parameter [ ] ,
5150 mrcPythonMethodName : string ,
@@ -58,10 +57,6 @@ type ClassMethodDefExtraState = {
5857 * Can change name and parameters and return type
5958 */
6059 canChangeSignature : boolean ,
61- /**
62- * Can delete from class
63- */
64- canDelete : boolean ,
6560 /**
6661 * The return type of the function.
6762 * Use 'None' for no return value.
@@ -100,7 +95,6 @@ const CLASS_METHOD_DEF = {
10095 this : ClassMethodDefBlock ) : ClassMethodDefExtraState {
10196 const extraState : ClassMethodDefExtraState = {
10297 canChangeSignature : this . mrcCanChangeSignature ,
103- canDelete : this . mrcCanDelete ,
10498 returnType : this . mrcReturnType ,
10599 params : [ ] ,
106100 } ;
@@ -124,7 +118,6 @@ const CLASS_METHOD_DEF = {
124118 extraState : ClassMethodDefExtraState
125119 ) : void {
126120 this . mrcCanChangeSignature = extraState . canChangeSignature ;
127- this . mrcCanDelete = extraState . canDelete ;
128121 this . mrcPythonMethodName = extraState . pythonMethodName ? extraState . pythonMethodName : '' ;
129122 this . mrcReturnType = extraState . returnType ;
130123 this . mrcParameters = [ ] ;
@@ -157,7 +150,6 @@ const CLASS_METHOD_DEF = {
157150 //Case because a current bug in blockly where it won't allow passing null to Blockly.Block.setMutator makes it necessary.
158151 ( this as Blockly . BlockSvg ) . setMutator ( null ) ;
159152 }
160- this . setDeletable ( this . mrcCanDelete ) ;
161153 this . mrcUpdateParams ( ) ;
162154 } ,
163155 compose : function ( this : ClassMethodDefBlock , containerBlock : any ) {
0 commit comments