Skip to content

Commit

Permalink
classlib: properly deprecate Server method
Browse files Browse the repository at this point in the history
userSpecifiedClientID. also add documentation with explanation.
  • Loading branch information
mossheim committed Dec 13, 2017
1 parent 7d9f54c commit fb8b30f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions HelpSource/Classes/Server.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ code::true:: if the server is running on the same machine as sclang, code::false
method:: remoteControlled
code::true:: if the server is not being controlled by the machine on which it is running, code::false:: otherwise. This value is the same as code::isLocal:: unless explicitly set.

method:: userSpecifiedClientID
Deprecated in 3.9. Returns code::false::. Server:clientID can now be set while a server is off, and is locked while the server is running. Thus, userSpecifiedClientID is no longer needed internally, and meaningless.

subsection:: Message Bundling

Server provides support for automatically bundling messages. This is quite convenient in object style, and ensures synchronous execution. See also link::Guides/Bundled-Messages::
Expand Down
6 changes: 0 additions & 6 deletions SCClassLibrary/Common/Control/Server.sc
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,6 @@ Server {

/* clientID */

userSpecifiedClientID {
this.deprecated(thisMethod);
"Server:clientID can now be set while a server is off, and is locked while the server is running. Thus, userSpecifiedClientID is no longer needed internally, and meaningless. Returns false just in case user code calls this.".postln;
^false
}

// clientID is settable while server is off, and locked while server is running
// called from prHandleClientLoginInfoFromServer once after booting.
clientID_ { |val|
Expand Down
7 changes: 7 additions & 0 deletions SCClassLibrary/deprecated/3.9/deprecated-3.9.sc
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,10 @@ SharedIn : AbstractIn {
}
}
}

+ Server {
userSpecifiedClientID {
this.deprecated(thisMethod);
^false
}
}

0 comments on commit fb8b30f

Please sign in to comment.