Skip to content

Commit 2935888

Browse files
committed
Removed some old docs
1 parent 5f99245 commit 2935888

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

docs/pages/kotlinx-rpc/topics/annotation-type-safety.topic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
</p>
1111
<code-block lang="Kotlin">
1212
@Rpc
13-
interface MyService : RemoteService
13+
interface MyService
1414

1515
class MyServiceImpl : MyService
1616

17-
fun &lt;T : RemoteService&gt; withService() {}
17+
fun &lt;T&gt; withService() {}
1818
</code-block>
1919
<p>
2020
The compiler can't guarantee that the passed type parameter is the one for which the code generation was run:

docs/pages/kotlinx-rpc/topics/krpc-ktor.topic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
)
8888

8989
@Rpc
90-
interface ImageService : RemoteService {
90+
interface ImageService {
9191
suspend fun processImage(url: String): ProcessedImage
9292
}
9393
</code-block>

docs/pages/kotlinx-rpc/topics/strict-mode.topic

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<p>Deprecation level: <code>ERROR</code></p>
2121
<code-block lang="kotlin">
2222
@Rpc
23-
interface Service : RemoteService {
23+
interface Service {
2424
suspend fun old(): StateFlow&lt;Int&gt; // deprecated
2525

2626
suspend fun new(): Flow&lt;Int&gt; // use .stateIn on the client side
@@ -32,7 +32,7 @@
3232
<p>Deprecation level: <code>ERROR</code></p>
3333
<code-block lang="kotlin">
3434
@Rpc
35-
interface Service : RemoteService {
35+
interface Service {
3636
val old: Flow&lt;Int&gt; // deprecated
3737

3838
suspend fun new(): Flow&lt;Int&gt; // store flow locally
@@ -43,7 +43,7 @@
4343
<p>Deprecation level: <code>ERROR</code></p>
4444
<code-block lang="kotlin">
4545
@Rpc
46-
interface Service : RemoteService {
46+
interface Service {
4747
suspend fun old(): Flow&lt;Flow&lt;Int&gt;&gt; // deprecated
4848

4949
// no particular alternative, depends on the use case
@@ -57,7 +57,7 @@
5757
data class SpotifyWrapped(val myMusicFlow: Flow&lt;Rap&gt;, val extra: Data)
5858

5959
@Rpc
60-
interface Service : RemoteService {
60+
interface Service {
6161
suspend fun old(): SpotifyWrapped // deprecated
6262

6363
// one should consider message delivery order when calling these
@@ -73,7 +73,7 @@
7373
data class SpotifyWrapped(val extra: Data)
7474

7575
@Rpc
76-
interface Service : RemoteService {
76+
interface Service {
7777
suspend fun old(): Flow&lt;SpotifyWrapped&gt; // deprecated
7878

7979
fun new(): Flow&lt;SpotifyWrapped&gt;
@@ -102,7 +102,7 @@
102102
</p>
103103
<code-block lang="kotlin">
104104
@Rpc
105-
interface Service : RemoteService {
105+
interface Service {
106106
suspend fun oldClient(flow: Flow&lt;Int&gt;)
107107
suspend fun oldServer(): Flow&lt;Int&gt;
108108
}
@@ -122,7 +122,7 @@
122122
</p>
123123
<code-block lang="kotlin">
124124
@Rpc
125-
interface Service : RemoteService {
125+
interface Service {
126126
suspend fun newClient(flow: Flow&lt;Int&gt;)
127127
fun newServer(): Flow&lt;Int&gt;
128128
}

0 commit comments

Comments
 (0)