Commit 303c647
committed
Merge branch 'develop-clean-copilot-diagrams' into develop. Close #351.
**Description**
The diagrams template includes two functions, `noneOf` and
`checkValidTransitions`, that are not used by the backend or any of the
generated code. While in general they can be useful, since they are
currently not being used, it's best to remove them.
**Type**
- Bug: Template includes unused code.
**Additional context**
None.
**Requester**
- Ivan Perez.
**Method to check presence of bug**
The template file `ogma-core/templates/diagram/Copilot.hs` contains the
functions `noneOf` and `checkValidTransitions`, which are not used
anywhere in the template, and are not mentioned anywhere in the diagrams
backend `ogma-core/src/Command/Diagram.hs`. Because that module uses a
function `noneOf` from `Text.Megaparsec`, it's not possible to use
regexp matching to determine that the functions in the template are also
not used by text inserted in the module by the backend.
**Expected result**
The template file `ogma-core/templates/diagram/Copilot.hs` does not
include the functions `noneOf` or `checkValidTransitions`.
**Solution implemented**
Remove the definitions `noneOf` and `checkValidTransitions` from
`ogma-core/templates/diagram/Copilot.hs`.
Remove any references to the aforementioned functions from any existing
documentation.
**Further notes**
None.File tree
3 files changed
+14
-42
lines changed- ogma-core
- src/Command
- templates/diagram
3 files changed
+14
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
0 commit comments