Skip to content

Commit

Permalink
Merge pull request BelaPlatform#5 from brianlheim/lcidwr/deprecate
Browse files Browse the repository at this point in the history
classlib: properly deprecate Server.userSpecifiedClientID
  • Loading branch information
Alberto de Campo authored Dec 14, 2017
2 parents 584ac13 + fb8b30f commit cd756f1
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 @@ -383,6 +383,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 cd756f1

Please sign in to comment.