[cairo-commit] rcairo/packages/cairo/lib cairo.rb,1.14,1.15

Kouhei Sutou commit at pdx.freedesktop.org
Sun Oct 9 08:56:02 PDT 2005


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/lib
In directory gabe:/tmp/cvs-serv28962/packages/cairo/lib

Modified Files:
	cairo.rb 
Log Message:
* packages/cairo/lib/cairo.rb: Remove deprecated API.


Index: cairo.rb
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/lib/cairo.rb,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- cairo.rb	9 Oct 2005 15:37:33 -0000	1.14
+++ cairo.rb	9 Oct 2005 15:56:00 -0000	1.15
@@ -19,19 +19,6 @@
   class Context
     Cairo.__add_one_arg_setter(self)
 
-    def dup
-      copy = Context.new
-      copy.copy(self)
-      return copy
-    end
-    
-    def clone
-      copy = Context.new
-      copy.copy(self)
-      copy.freeze if self.frozen?
-      return copy
-    end
-
     def quad_to(x1, y1, x2, y2)
       ( x0, y0 ) = get_point
       cx1 = x0 + 2 * ( x1 - x0 ) / 3
@@ -40,6 +27,7 @@
       cy2 = cy1 + ( y2 - y0 ) / 3
       curve_to(cx1, cy1, cx2, cy2, x2, y2)
     end
+    
     def rel_quad_to(x1, y1, x2, y2)
       ( x0, y0 ) = get_point
       quad_to(x1 + x0, y1 + y0, x2 + x0, y2 + x0)



More information about the cairo-commit mailing list