Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Commit 3b39be6

Browse files
committed
Revert "Add MiraiConsoleImplementation.isInitialized", postpone to 1.1.0
This reverts commit 8f61943
1 parent ecef9f8 commit 3b39be6

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

backend/mirai-console/src/MiraiConsoleImplementation.kt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -185,27 +185,12 @@ public interface MiraiConsoleImplementation : CoroutineScope {
185185
* 可由前端调用, 获取当前的 [MiraiConsoleImplementation] 实例
186186
*
187187
* 必须在 [start] 之后才能使用, 否则抛出 [UninitializedPropertyAccessException]
188-
*
189-
* @see isInitialized
190188
*/
191189
@JvmStatic
192190
@ConsoleFrontEndImplementation
193191
public fun getInstance(): MiraiConsoleImplementation = instance
194192

195-
/**
196-
* 当 [MiraiConsoleImplementation] 已经初始化后返回 `true`
197-
*/
198-
@JvmStatic
199-
@ConsoleFrontEndImplementation
200-
public val isInitialized: Boolean
201-
get() = ::instance.isInitialized
202-
203-
/**
204-
* 由前端调用, 初始化 [MiraiConsole] 实例并启动
205-
*
206-
* @see getInstance
207-
* @see isInitialized
208-
*/
193+
/** 由前端调用, 初始化 [MiraiConsole] 实例并启动 */
209194
@JvmStatic
210195
@ConsoleFrontEndImplementation
211196
@Throws(MalformedMiraiConsoleImplementationError::class)

0 commit comments

Comments
 (0)