From fd37486e072fc946da6405eb92a1664b5a735615 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Sun, 20 Sep 2015 13:58:11 +0900 Subject: Remove unused `pk_and_sequence_for` in AbstractMysqlAdapter `pk_and_sequence_for` is implemented for PG and MySQL adapters (not implemented for Sqlite3 adapter). But MySQL adapters are not using `pk_and_sequence_for` already. --- .../active_record/connection_adapters/abstract_mysql_adapter.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'activerecord/lib/active_record/connection_adapters') diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index cd8097d1b3..24408d6bb6 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -850,13 +850,6 @@ module ActiveRecord nil end - # Returns a table's primary key and belonging sequence. - def pk_and_sequence_for(table) - if pk = primary_key(table) - [ pk, nil ] - end - end - def primary_keys(table_name) # :nodoc: raise ArgumentError unless table_name.present? -- cgit v1.2.3