Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
svn path=/branches/mono-1-9/mcs/; revision=100228
  • Loading branch information
jbevain committed Apr 9, 2008
1 parent de56982 commit 6676b44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
7 changes: 1 addition & 6 deletions mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -705,11 +705,6 @@ protected override void GenerateMethod (CodeMemberMethod method,
}
}

static bool IsAbstract (MemberAttributes attributes)
{
return (attributes & MemberAttributes.Abstract) == MemberAttributes.Abstract;
}

protected override void GenerateProperty (CodeMemberProperty property,
CodeTypeDeclaration declaration)
{
Expand Down Expand Up @@ -753,7 +748,7 @@ protected override void GenerateProperty (CodeMemberProperty property,
OutputStartBrace ();
++Indent;

if (declaration.IsInterface || IsAbstract (property.Attributes))
if (declaration.IsInterface)
{
if (property.HasGet) output.WriteLine("get;");
if (property.HasSet) output.WriteLine("set;");
Expand Down
6 changes: 0 additions & 6 deletions mcs/class/System/Microsoft.CSharp/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
2008-04-08 Jb Evain <jbevain@novell.com>

* CSharpCodeGenerator.cs: Emit bodyless getters and setters
for abstract properties. Based on a patch by
Stefan Rusek <stefan@fogcreek.com>

2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>

* CSharpCodeGenerator.cs: Avoid ArgumentNullException when
Expand Down

0 comments on commit 6676b44

Please sign in to comment.