Skip to content

Commit

Permalink
Clean up of deprecated items, updated changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Jan 10, 2024
1 parent 27ede3e commit 5389f42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 2.0.0 (unreleased)

- Removes the deprecated concepts (e.g. location and enterprise.
- structurizr-core: Adds `Workspace.trim()` to trim a workspace of unused elements (i.e. those not associated with any views).
- structurizr-core: Removes the deprecated location and enterprise concepts from `Model`.
- structurizr-client: Removes `StructurizrClient` (use `WorkspaceApiClient` instead).

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public final class Enterprise {
* @throws IllegalArgumentException if the name is not specified
*/
@Deprecated
public Enterprise(String name) {
Enterprise(String name) {
if (name == null || name.trim().length() == 0) {
throw new IllegalArgumentException("Name must be specified.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ public Styles getStyles() {
return styles;
}

@JsonIgnore
@Deprecated
public String getTheme() {
if (themes == null || themes.size() == 0) {
return null;
}

return themes.get(0);
}

/**
* Sets the theme used to render views.
*
Expand Down

0 comments on commit 5389f42

Please sign in to comment.