Skip to content

Commit 2591868

Browse files
committed
formatter: remove unnecessary codes
Co-authored-by: Daijiro Fukuda <fukuda@clear-code.com> Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 0b48703 commit 2591868

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/fluent/compat/formatter.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,6 @@ class CsvFormatter < Fluent::Plugin::CsvFormatter
104104

105105
# Do not cache because it is hard to consider the thread key correctly.
106106
# (We can try, but it would be low priority.)
107-
def csv_for_thread
108-
CSV.new("".force_encoding(Encoding::ASCII_8BIT), **@generate_opts)
109-
end
110-
111-
# It is hard to consider the thread key correctly for the compat layer.
112-
def csv_thread_key
113-
raise NotImplementedError, "Compat CsvFormatter does not support CSV cache. Do not use this method."
114-
end
115-
116107
def csv_cacheable?
117108
false
118109
end

0 commit comments

Comments
 (0)