From: Justin Hunter Date: Fri, 15 Jan 2010 07:25:00 +0000 (-0700) Subject: remove redunant around add_column X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=05cab73c98015aef6df744457b12abe96aeffae9;p=dbsrgits%2FSQL-Translator-2.0-ish.git remove redunant around add_column --- diff --git a/lib/SQL/Translator/Object/View.pm b/lib/SQL/Translator/Object/View.pm index f23e070..e6c0e32 100644 --- a/lib/SQL/Translator/Object/View.pm +++ b/lib/SQL/Translator/Object/View.pm @@ -7,10 +7,4 @@ class SQL::Translator::Object::View extends SQL::Translator::Object::Table { is => 'rw', isa => Str, ); - - around add_column(Column $column does coerce) { - die "Can't use column name " . $column->name if $self->exists_column($column->name) || $column->name eq ''; - $column->table($self); - return $self->$orig($column->name, $column); - } }