瀏覽代碼

Removes old HTMLCanvas class >> is*

Nicolas Petton 11 年之前
父節點
當前提交
83445d9376
共有 2 個文件被更改,包括 0 次插入94 次删除
  1. 0 78
      js/Canvas.js
  2. 0 16
      st/Canvas.st

+ 0 - 78
js/Canvas.js

@@ -2180,84 +2180,6 @@ referencedClasses: []
 smalltalk.HTMLCanvas);
 
 
-smalltalk.addMethod(
-smalltalk.method({
-selector: "browserVersion",
-category: 'instance creation',
-fn: function (){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-var $1;
-$1=_st(_st(jQuery)._at_("browser"))._version();
-return $1;
-}, function($ctx1) {$ctx1.fill(self,"browserVersion",{},smalltalk.HTMLCanvas.klass)})},
-args: [],
-source: "browserVersion\x0a\x09^ (jQuery at: #browser) version",
-messageSends: ["version", "at:"],
-referencedClasses: []
-}),
-smalltalk.HTMLCanvas.klass);
-
-smalltalk.addMethod(
-smalltalk.method({
-selector: "isMozilla",
-category: 'instance creation',
-fn: function (){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-var $2,$1;
-$2=_st(_st(jQuery)._at_("browser"))._at_("mozilla");
-$ctx1.sendIdx["at:"]=1;
-$1=_st($2)._notNil();
-return $1;
-}, function($ctx1) {$ctx1.fill(self,"isMozilla",{},smalltalk.HTMLCanvas.klass)})},
-args: [],
-source: "isMozilla\x0a\x09^ ((jQuery at: #browser) at: #mozilla) notNil",
-messageSends: ["notNil", "at:"],
-referencedClasses: []
-}),
-smalltalk.HTMLCanvas.klass);
-
-smalltalk.addMethod(
-smalltalk.method({
-selector: "isOpera",
-category: 'instance creation',
-fn: function (){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-var $2,$1;
-$2=_st(_st(jQuery)._at_("browser"))._at_("opera");
-$ctx1.sendIdx["at:"]=1;
-$1=_st($2)._notNil();
-return $1;
-}, function($ctx1) {$ctx1.fill(self,"isOpera",{},smalltalk.HTMLCanvas.klass)})},
-args: [],
-source: "isOpera\x0a\x09^ ((jQuery at: #browser) at: #opera) notNil",
-messageSends: ["notNil", "at:"],
-referencedClasses: []
-}),
-smalltalk.HTMLCanvas.klass);
-
-smalltalk.addMethod(
-smalltalk.method({
-selector: "isWebkit",
-category: 'instance creation',
-fn: function (){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-var $2,$1;
-$2=_st(_st(jQuery)._at_("browser"))._at_("webkit");
-$ctx1.sendIdx["at:"]=1;
-$1=_st($2)._notNil();
-return $1;
-}, function($ctx1) {$ctx1.fill(self,"isWebkit",{},smalltalk.HTMLCanvas.klass)})},
-args: [],
-source: "isWebkit\x0a\x09^ ((jQuery at: #browser) at: #webkit) notNil",
-messageSends: ["notNil", "at:"],
-referencedClasses: []
-}),
-smalltalk.HTMLCanvas.klass);
-
 smalltalk.addMethod(
 smalltalk.method({
 selector: "onJQuery:",

+ 0 - 16
st/Canvas.st

@@ -547,22 +547,6 @@ video
 
 !HTMLCanvas class methodsFor: 'instance creation'!
 
-browserVersion
-	^ (jQuery at: #browser) version
-!
-
-isMozilla
-	^ ((jQuery at: #browser) at: #mozilla) notNil
-!
-
-isOpera
-	^ ((jQuery at: #browser) at: #opera) notNil
-!
-
-isWebkit
-	^ ((jQuery at: #browser) at: #webkit) notNil
-!
-
 onJQuery: aJQuery
 	^ self basicNew
 		initializeFromJQuery: aJQuery;