#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Fri, 21 Oct 2016 14:56:25 +0200
changeset 7636 c768f7e6b4a3
parent 7635 0972ebf422b8
child 7637 a809c69a2cf4
#REFACTORING by stefan class: Form removed: #fromFile: #fromFile:resolution: #fromFile:resolution:on: remove obsolete methods that do not work anyway
Form.st
--- a/Form.st	Fri Oct 21 12:00:48 2016 +0200
+++ b/Form.st	Fri Oct 21 14:56:25 2016 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
@@ -516,58 +514,6 @@
     ^ nil
 ! !
 
-!Form class methodsFor:'fileIn/Out'!
-
-fromFile:filename
-    "create a new form taking the bits from a file on the default device.
-     WARNING:
-     Please do no longer use this, since it will not work
-     correctly in multi-display applications (creates the form on the
-     default Display).
-     Use #fromFile:on: and pass the device as argument."
-
-    <resource:#obsolete>
-
-    self obsoleteMethodWarning:'please use Image>>fromFile:'.
-    ^ self fromFile:filename on:Screen current
-
-    "Modified: 19.12.1996 / 13:59:09 / cg"
-!
-
-fromFile:filename resolution:dpi
-    "create a new form taking the bits from a file on the default device
-     the data in the file is assumed to be for dpi resolution;
-     if it is different from the displays resolution, magnify or
-     shrink the picture (but only in integer magnification steps).
-     WARNING:
-     Please do no longer use this, since it will not work
-     correctly in multi-display applications (creates the form on the
-     default Display).
-     Use #fromFile:resolution:on: and pass the device as argument."
-
-    <resource:#obsolete>
-
-    self obsoleteMethodWarning:'please use Image>>fromFile:'.
-    ^ (self onDevice:Screen current) readFromFile:filename resolution:dpi
-
-    "Modified: 5.6.1997 / 21:06:03 / cg"
-!
-
-fromFile:filename resolution:dpi on:aDevice
-    "create a new form on device, aDevice and
-     initialize the pixels from the file filename;
-     the data in the file is assumed to be for dpi resolution;
-     if it is different from the displays resolution, magnify or
-     shrink the picture (but only in integer magnification steps)"
-
-    <resource:#obsolete>
-
-    self obsoleteMethodWarning:'please use Image>>fromFile:'.
-    ^ (self onDevice:aDevice) readFromFile:filename resolution:dpi
-
-    "Modified: 5.6.1997 / 21:05:54 / cg"
-! !
-
 !Form class methodsFor:'obsolete instance creation'!
 
 darkGreyFormOn:aDevice