@@ -31,34 +31,11 @@ var Document = this.Document = Base.extend({
3131 this . symbols = [ ] ;
3232 this . activeLayer = new Layer ( ) ;
3333 this . activeView = canvas ? new DocumentView ( canvas ) : null ;
34- // XXX: Introduce pages and remove Document#bounds!
35- var size = this . activeView && this . activeView . _size
36- || new Size ( 1024 , 768 ) ;
37- this . _bounds = Rectangle . create ( 0 , 0 , size . width , size . height ) ;
3834 this . _selectedItems = { } ;
3935 this . _selectedItemCount = 0 ;
4036 this . setCurrentStyle ( null ) ;
4137 } ,
4238
43- getBounds : function ( ) {
44- // TODO: Consider LinkedRectangle once it is required.
45- return this . _bounds ;
46- } ,
47-
48- setBounds : function ( rect ) {
49- rect = Rectangle . read ( arguments ) ;
50- this . _bounds . set ( rect . x , rect . y , rect . width , rect . height ) ;
51- } ,
52-
53- getSize : function ( ) {
54- return this . _bounds . getSize ( ) ;
55- } ,
56-
57- setSize : function ( size ) {
58- // TODO: Once _bounds is a LinkedRectangle, this will recurse
59- this . _bounds . setSize . apply ( this . _bounds , arguments ) ;
60- } ,
61-
6239 getCurrentStyle : function ( ) {
6340 return this . _currentStyle ;
6441 } ,
0 commit comments