Remove parent transaction state

As far as I can tell nobody is setting this variable.
This commit is contained in:
Arthur Neves 2015-03-01 22:21:24 -05:00
parent 4e68681ca8
commit afd1a870f8
2 changed files with 0 additions and 7 deletions

@ -1,13 +1,10 @@
module ActiveRecord
module ConnectionAdapters
class TransactionState
attr_reader :parent
VALID_STATES = Set.new([:committed, :rolledback, nil])
def initialize(state = nil)
@state = state
@parent = nil
end
def finalized?

@ -521,10 +521,6 @@ def update_attributes_from_transaction_state(transaction_state, depth)
clear_transaction_record_state
@reflects_state[depth] = true
end
if transaction_state.parent
update_attributes_from_transaction_state(transaction_state.parent, depth+1)
end
end
end