From 00d7eb7dcf99321383d380fb6bd0f4a467939b40 Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Tue, 10 Oct 2017 09:46:15 +0900 Subject: [PATCH] Remove needless library lock with gem methods. This code inserted at https://github.com/ruby/rdoc/commit/978cd909829806527a2f76e1cf98e64cc5dc8e49 But current rdoc/text.rb implementation did not use JSON library. --- lib/rdoc/text.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/rdoc/text.rb b/lib/rdoc/text.rb index cf708e6bbd..88ff255f01 100644 --- a/lib/rdoc/text.rb +++ b/lib/rdoc/text.rb @@ -5,16 +5,6 @@ require 'strscan' -## -# For RDoc::Text#snippet - -begin - gem 'json' -rescue NameError => e # --disable-gems - raise unless e.name == :gem -rescue Gem::LoadError -end - ## # Methods for manipulating comment text