From 704b442d4085777c443c902383c6714c74574cb7 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Thu, 26 Jan 2012 15:20:01 -0800 Subject: [PATCH] Don't warn about links to private members. The warning type :link_private is now gone. It made sense to warn about such links when we had no private members included to docs. But now we can freely link to private ones too. --- lib/jsduck/doc_formatter.rb | 6 ------ lib/jsduck/logger.rb | 1 - 2 files changed, 7 deletions(-) diff --git a/lib/jsduck/doc_formatter.rb b/lib/jsduck/doc_formatter.rb index f5ad5f6b..96e65236 100644 --- a/lib/jsduck/doc_formatter.rb +++ b/lib/jsduck/doc_formatter.rb @@ -162,12 +162,6 @@ module JsDuck return text end - ms = ms.find_all {|m| !m[:private] } - if ms.length == 0 - Logger.instance.warn(:link_private, "#{input} links to private member", file, line) - return text - end - if ms.length > 1 # When multiple public members, see if there remains just # one when we ignore the static members. If there's more, diff --git a/lib/jsduck/logger.rb b/lib/jsduck/logger.rb index 5b7701dc..c5da78c6 100644 --- a/lib/jsduck/logger.rb +++ b/lib/jsduck/logger.rb @@ -17,7 +17,6 @@ module JsDuck [:inheritdoc, "@inheritdoc referring to unknown class or member"], [:extend, "@extend or @mixin referring to unknown class"], [:link, "{@link} to unknown class or member"], - [:link_private, "{@link} to private member"], [:link_ambiguous, "{@link} is ambiguous"], [:link_auto, "Auto-detected link to unknown class or member"], -- GitLab