Skip to content

Commit 99ae1d9

Browse files
committed
remove unnecessary private comments for files in impl folder
1 parent c65c294 commit 99ae1d9

File tree

10 files changed

+0
-21
lines changed

10 files changed

+0
-21
lines changed

lib/ldclient-rb/impl.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module LaunchDarkly
66
#
77
# @since 5.5.0
88
# @api private
9-
#
109
module Impl
1110
# code is in ldclient-rb/impl/
1211
end

lib/ldclient-rb/impl/cache_store.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22

33
module LaunchDarkly
44
module Impl
5-
#
65
# A thread-safe in-memory store that uses the same semantics that Faraday would expect, although we
76
# no longer use Faraday. This is used by Requestor, when we are not in a Rails environment.
8-
#
9-
# @api private
10-
#
117
class ThreadSafeMemoryStore
128
#
139
# Default constructor

lib/ldclient-rb/impl/data_source/polling.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
module LaunchDarkly
99
module Impl
1010
module DataSource
11-
# @api private
1211
class PollingProcessor
1312
def initialize(config, requestor)
1413
@config = config

lib/ldclient-rb/impl/data_source/requestor.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
module LaunchDarkly
1010
module Impl
1111
module DataSource
12-
# @api private
1312
class UnexpectedResponseError < StandardError
1413
def initialize(status)
1514
@status = status
@@ -21,7 +20,6 @@ def status
2120
end
2221
end
2322

24-
# @api private
2523
class Requestor
2624
CacheEntry = Struct.new(:etag, :body)
2725

lib/ldclient-rb/impl/data_source/stream.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,16 @@
99
module LaunchDarkly
1010
module Impl
1111
module DataSource
12-
# @api private
1312
PUT = :put
14-
# @api private
1513
PATCH = :patch
16-
# @api private
1714
DELETE = :delete
18-
# @api private
1915
READ_TIMEOUT_SECONDS = 300 # 5 minutes; the stream should send a ping every 3 minutes
2016

21-
# @api private
2217
KEY_PATHS = {
2318
Impl::DataStore::FEATURES => "/flags/",
2419
Impl::DataStore::SEGMENTS => "/segments/",
2520
}
2621

27-
# @api private
2822
class StreamProcessor
2923
def initialize(sdk_key, config, diagnostic_accumulator = nil)
3024
@sdk_key = sdk_key

lib/ldclient-rb/impl/data_store.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ module DataStore
1313
# The :priority and :get_dependency_keys properties are used by FeatureStoreDataSetSorter
1414
# to ensure data consistency during non-atomic updates.
1515

16-
# @api private
1716
FEATURES = DataKind.new(namespace: "features", priority: 1).freeze
1817

19-
# @api private
2018
SEGMENTS = DataKind.new(namespace: "segments", priority: 0).freeze
2119

22-
# @api private
2320
ALL_KINDS = [FEATURES, SEGMENTS].freeze
2421
end
2522
end

lib/ldclient-rb/impl/expiring_cache.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module Impl
77
# * made thread-safe
88
# * removed many unused methods
99
# * reading a key does not reset its expiration time, only writing
10-
# @api private
1110
class ExpiringCache
1211
def initialize(max_size, ttl)
1312
@max_size = max_size

lib/ldclient-rb/impl/memoized_value.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module Impl
44
# Simple implementation of a thread-safe memoized value whose generator function will never be
55
# run more than once, and whose value can be overridden by explicit assignment.
66
# Note that we no longer use this class and it will be removed in a future version.
7-
# @api private
87
class MemoizedValue
98
def initialize(&generator)
109
@generator = generator

lib/ldclient-rb/impl/non_blocking_thread_pool.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module LaunchDarkly
77
module Impl
88
# Simple wrapper for a FixedThreadPool that rejects new jobs if all the threads are busy, rather
99
# than blocking. Also provides a way to wait for all jobs to finish without shutting down.
10-
# @api private
1110
class NonBlockingThreadPool
1211
def initialize(capacity, name = 'LD/NonBlockingThreadPool')
1312
@capacity = capacity

lib/ldclient-rb/impl/simple_lru_cache.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module LaunchDarkly
33
module Impl
44
# A non-thread-safe implementation of a LRU cache set with only add and reset methods.
55
# Based on https://github.com/SamSaffron/lru_redux/blob/master/lib/lru_redux/cache.rb
6-
# @api private
76
class SimpleLRUCacheSet
87
def initialize(capacity)
98
@values = {}

0 commit comments

Comments
 (0)