Skip to content

Commit

Permalink
RUBY-2709 Remove Server::Context (#2295)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleg Pudeyev <code@olegp.name>
  • Loading branch information
p-mongo and p committed Jul 6, 2021
1 parent 1462568 commit 7280501
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 87 deletions.
15 changes: 0 additions & 15 deletions lib/mongo/server.rb
Expand Up @@ -226,20 +226,6 @@ def ==(other)
address == other.address
end

# Get a new context for this server in which to send messages.
#
# @example Get the server context.
# server.context
#
# @return [ Mongo::Server::Context ] context The server context.
#
# @since 2.0.0
#
# @deprecated Will be removed in version 3.0
def context
Context.new(self)
end

# Determine if a connection to the server is able to be established and
# messages can be sent to it.
#
Expand Down Expand Up @@ -619,7 +605,6 @@ def update_last_scan
require 'mongo/server/pending_connection'
require 'mongo/server/connection'
require 'mongo/server/connection_pool'
require 'mongo/server/context'
require 'mongo/server/description'
require 'mongo/server/monitor'
require 'mongo/server/round_trip_time_averager'
Expand Down
72 changes: 0 additions & 72 deletions lib/mongo/server/context.rb

This file was deleted.

0 comments on commit 7280501

Please sign in to comment.