#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Fri, 29 Jul 2016 17:15:38 +0200
changeset 7487 39fb74b4ade1
parent 7486 c3a1433996ec
child 7488 72af47b8a56a
child 7541 39940e2446a5
#REFACTORING by stefan class: GraphicsDevice changed: #newGraphicsContextFor:
GraphicsDevice.st
--- a/GraphicsDevice.st	Fri Jul 29 16:51:46 2016 +0200
+++ b/GraphicsDevice.st	Fri Jul 29 17:15:38 2016 +0200
@@ -117,16 +117,7 @@
      The defaults is to use the inherited graphics context.
      Subclasses may redefine this to use their own graphics context"
 
-    |gc|
-
-    GraphicsMedium superclass == DeviceGraphicsContext ifTrue:[
-        "this is for transition to delegatest GC"
-        ^ aGraphicsMedium.
-    ].
-
-    gc := DeviceGraphicsContext onDevice:self.
-    gc font:aGraphicsMedium class defaultFont.
-    ^ gc.
+    ^ DeviceGraphicsContext onDevice:self.
 ! !
 
 !GraphicsDevice methodsFor:'event processing'!