Skip to content

Commit

Permalink
Remove redundant methods
Browse files Browse the repository at this point in the history
Because we can assume that 3rd party plugins that use `detach_process`
or `detach_multi_process` includes `Fluent::DetachProcessMixin` or
`Fluent::DetachMultiProcessMixin`.
  • Loading branch information
okkez committed Mar 30, 2017
1 parent e6e12c8 commit a9ba4ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions lib/fluent/compat/input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ def before_shutdown
def shutdown
super
end

def detach_process(&block)
log.warn "detach_process is not supported in this version. ignored."
block.call
end

def detach_multi_process(&block)
log.warn "detach_process is not supported in this version. ignored."
block.call
end
end
end
end
10 changes: 0 additions & 10 deletions lib/fluent/compat/output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,6 @@ def start
end
end
end

def detach_process(&block)
log.warn "detach_process is not supported in this version. ignored."
block.call
end

def detach_multi_process(&block)
log.warn "detach_process is not supported in this version. ignored."
block.call
end
end

class MultiOutput < Fluent::Plugin::BareOutput
Expand Down

0 comments on commit a9ba4ad

Please sign in to comment.