[gobject-introspection] ast: cleanup clone() methods
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] ast: cleanup clone() methods
- Date: Thu, 20 Jan 2011 16:13:40 +0000 (UTC)
commit d59af7decedaef4dac5cbbc45399b647a3a6ec76
Author: Johan Dahlin <johan gnome org>
Date: Wed Jan 19 11:04:24 2011 -0200
ast: cleanup clone() methods
giscanner/ast.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/giscanner/ast.py b/giscanner/ast.py
index f5270fc..9060519 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -606,7 +606,6 @@ class Array(Type):
def clone(self):
arr = Array(self.array_type, self.element_type)
- arr.element_type = self.element_type
arr.zeroterminated = self.zeroterminated
arr.length_param_name = self.length_param_name
arr.size = self.size
@@ -623,7 +622,6 @@ class List(Type):
def clone(self):
l = List(self.name, self.element_type)
- l.element_type = self.element_type
l.zeroterminated = self.zeroterminated
l.length_param_name = self.length_param_name
l.size = self.size
@@ -639,8 +637,7 @@ class Map(Type):
self.value_type = value_type
def clone(self):
- m = Map(self.key_type, self.value_type)
- return m
+ return Map(self.key_type, self.value_type)
class Alias(Node):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]