Skip to content

Commit 1cadf00

Browse files
committed
Remove unused function
1 parent 14799ab commit 1cadf00

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/kotlin/com/coder/gateway/views/CoderGatewayRecentWorkspaceConnectionsView.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,14 @@ import javax.swing.event.DocumentEvent
6565
* DeploymentInfo contains everything needed to query the API for a deployment
6666
* along with the latest workspace responses.
6767
*/
68-
class DeploymentInfo(
68+
data class DeploymentInfo(
6969
// Null if unable to create the client.
7070
var client: CoderRestClient? = null,
7171
// Null if we have not fetched workspaces yet.
7272
var items: List<WorkspaceAgentListModel>? = null,
7373
// Null if there have not been any errors yet.
7474
var error: String? = null,
75-
) {
76-
fun didFetch(): Boolean {
77-
return items != null
78-
}
79-
}
75+
)
8076

8177
class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback: (Component) -> Unit) : GatewayRecentConnections, Disposable {
8278
private val settings = service<CoderSettingsService>()

0 commit comments

Comments
 (0)