Skip to content

Commit

Permalink
Merge pull request #1171 from stripe/richardm-dead-code
Browse files Browse the repository at this point in the history
Remove unused `partial` param from `initialize_from`
  • Loading branch information
richardm-stripe committed Jan 23, 2023
2 parents 339d36b + a42bdeb commit 990792f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/stripe/stripe_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,13 @@ class << self; self; end
# * +:opts:+ Options for StripeObject like an API key.
# * +:partial:+ Indicates that the re-initialization should not attempt to
# remove accessors.
protected def initialize_from(values, opts, partial = false)
protected def initialize_from(values, opts)
@opts = Util.normalize_opts(opts)

# the `#send` is here so that we can keep this method private
@original_values = self.class.send(:deep_copy, values)

removed = partial ? Set.new : Set.new(@values.keys - values.keys)
removed = Set.new(@values.keys - values.keys)
added = Set.new(values.keys - @values.keys)

# Wipe old state before setting new. This is useful for e.g. updating a
Expand Down

0 comments on commit 990792f

Please sign in to comment.