Explorar o código

helios: removes unused method

Nicolas Petton %!s(int64=10) %!d(string=hai) anos
pai
achega
79782eec86
Modificáronse 3 ficheiros con 0 adicións e 72 borrados
  1. 0 28
      js/Helios-KeyBindings.deploy.js
  2. 0 33
      js/Helios-KeyBindings.js
  3. 0 11
      st/Helios-KeyBindings.st

+ 0 - 28
js/Helios-KeyBindings.deploy.js

@@ -107,34 +107,6 @@ return self}, function($ctx1) {$ctx1.fill(self,"release",{},smalltalk.HLBinding)
 messageSends: []}),
 smalltalk.HLBinding);
 
-smalltalk.addMethod(
-smalltalk.method({
-selector: "renderActionFor:html:",
-fn: function (aBinder,html){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-var $1,$3,$4,$5,$6,$2;
-$1=_st(html)._span();
-_st($1)._class_("command");
-$2=_st($1)._with_((function(){
-return smalltalk.withContext(function($ctx2) {
-$3=_st(html)._span();
-_st($3)._class_("label");
-$4=_st($3)._with_(_st(self._shortcut())._asLowercase());
-$4;
-$5=_st(html)._a();
-_st($5)._class_("action");
-_st($5)._with_(self._displayLabel());
-$6=_st($5)._onClick_((function(){
-return smalltalk.withContext(function($ctx3) {
-return _st(aBinder)._applyBinding_(self);
-}, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
-return $6;
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
-return self}, function($ctx1) {$ctx1.fill(self,"renderActionFor:html:",{aBinder:aBinder,html:html},smalltalk.HLBinding)})},
-messageSends: ["class:", "span", "with:", "asLowercase", "shortcut", "a", "displayLabel", "onClick:", "applyBinding:"]}),
-smalltalk.HLBinding);
-
 smalltalk.addMethod(
 smalltalk.method({
 selector: "renderOn:html:",

+ 0 - 33
js/Helios-KeyBindings.js

@@ -152,39 +152,6 @@ referencedClasses: []
 }),
 smalltalk.HLBinding);
 
-smalltalk.addMethod(
-smalltalk.method({
-selector: "renderActionFor:html:",
-category: 'rendering',
-fn: function (aBinder,html){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-var $1,$3,$4,$5,$6,$2;
-$1=_st(html)._span();
-_st($1)._class_("command");
-$2=_st($1)._with_((function(){
-return smalltalk.withContext(function($ctx2) {
-$3=_st(html)._span();
-_st($3)._class_("label");
-$4=_st($3)._with_(_st(self._shortcut())._asLowercase());
-$4;
-$5=_st(html)._a();
-_st($5)._class_("action");
-_st($5)._with_(self._displayLabel());
-$6=_st($5)._onClick_((function(){
-return smalltalk.withContext(function($ctx3) {
-return _st(aBinder)._applyBinding_(self);
-}, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
-return $6;
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
-return self}, function($ctx1) {$ctx1.fill(self,"renderActionFor:html:",{aBinder:aBinder,html:html},smalltalk.HLBinding)})},
-args: ["aBinder", "html"],
-source: "renderActionFor: aBinder html: html\x0a\x09html span class: 'command'; with: [\x0a\x09\x09html span \x0a\x09\x09\x09class: 'label'; \x0a\x09\x09\x09with: self shortcut asLowercase.\x0a  \x09\x09html a \x0a        \x09class: 'action'; \x0a            with: self displayLabel;\x0a  \x09\x09\x09onClick: [ aBinder applyBinding: self ] ]",
-messageSends: ["class:", "span", "with:", "asLowercase", "shortcut", "a", "displayLabel", "onClick:", "applyBinding:"],
-referencedClasses: []
-}),
-smalltalk.HLBinding);
-
 smalltalk.addMethod(
 smalltalk.method({
 selector: "renderOn:html:",

+ 0 - 11
st/Helios-KeyBindings.st

@@ -43,17 +43,6 @@ release
 
 !HLBinding methodsFor: 'rendering'!
 
-renderActionFor: aBinder html: html
-	html span class: 'command'; with: [
-		html span 
-			class: 'label'; 
-			with: self shortcut asLowercase.
-  		html a 
-        	class: 'action'; 
-            with: self displayLabel;
-  			onClick: [ aBinder applyBinding: self ] ]
-!
-
 renderOn: aBindingHelper html: html
 ! !