Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUBY-2709 Remove Server::Context #2295

Merged
merged 1 commit into from
Jul 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 0 additions & 15 deletions lib/mongo/server.rb
Original file line number Diff line number Diff line change
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.