vala r997 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r997 - in trunk: . gobject
- Date: Fri, 8 Feb 2008 12:49:21 +0000 (GMT)
Author: juergbi
Date: Fri Feb 8 12:49:20 2008
New Revision: 997
URL: http://svn.gnome.org/viewvc/vala?rev=997&view=rev
Log:
2008-02-08 Juerg Billeter <j bitron ch>
* gobject/valaccodegeneratorstruct.vala: remove obsolete code used
for reference-type structs
Modified:
trunk/ChangeLog
trunk/gobject/valaccodegeneratorstruct.vala
Modified: trunk/gobject/valaccodegeneratorstruct.vala
==============================================================================
--- trunk/gobject/valaccodegeneratorstruct.vala (original)
+++ trunk/gobject/valaccodegeneratorstruct.vala Fri Feb 8 12:49:20 2008
@@ -1,6 +1,6 @@
/* valaccodegeneratorstruct.vala
*
- * Copyright (C) 2006-2007 JÃrg Billeter, Raffaele Sandrini
+ * Copyright (C) 2006-2008 JÃrg Billeter, Raffaele Sandrini
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -53,30 +53,6 @@
st.accept_children (this);
- if (st.default_construction_method != null) {
- var function = new CCodeFunction (st.get_lower_case_cprefix () + "free", "void");
- if (st.access == SymbolAccessibility.PRIVATE) {
- function.modifiers = CCodeModifiers.STATIC;
- }
-
- function.add_parameter (new CCodeFormalParameter ("self", st.get_cname () + "*"));
-
- decl_frag.append (function.copy ());
-
- var cblock = new CCodeBlock ();
-
- cblock.add_statement (instance_dispose_fragment);
-
- var ccall = new CCodeFunctionCall (new CCodeIdentifier ("g_slice_free"));
- ccall.add_argument (new CCodeIdentifier (st.get_cname ()));
- ccall.add_argument (new CCodeIdentifier ("self"));
- cblock.add_statement (new CCodeExpressionStatement (ccall));
-
- function.block = cblock;
-
- def_frag.append (function);
- }
-
current_type_symbol = old_type_symbol;
instance_struct = old_instance_struct;
instance_dispose_fragment = old_instance_dispose_fragment;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]