This issue has been created
There are 2 updates.
 
 
Prism.js Macro / cid:jira-generated-image-avatar-2ba8e665-6618-40e6-8e21-465a6bb2f027 XPRISMJS-12 Open

Remove the unused PrismMacroLayout.Constants class

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-cb6a85b0-df3d-4bd9-81d2-920b771e5ad1 Vincent Massol created this issue on 20/Oct/26 15:27
 
Summary: Remove the unused PrismMacroLayout.Constants class
Issue Type: cid:jira-generated-image-avatar-2ba8e665-6618-40e6-8e21-465a6bb2f027 Improvement
Affects Versions: 1.2.3
Assignee: Unassigned
Created: 20/Oct/26 15:27
Priority: cid:jira-generated-image-static-major-f085f3a7-e90c-4fc7-bc8d-cf09681f4625 Major
Reporter: Vincent Massol
Description:

The public org.xwiki.contrib.prismjs.PrismMacroLayout.Constants class (holding the PLAIN_HINT and LINENUMBERS_HINT string constants) is not used anywhere: the PrismMacroLayout enum stored these hints in a private field that was never read, and the layouts are not implemented as components that would need such hints in an annotation.

This class and the corresponding unused private hint field of the enum are removed. The PrismMacroLayout enum values (PLAIN, LINENUMBERS) are unchanged, so the layout parameter of the prism macro is not affected.

Backward compatibility

This removes a public class from the API. It is not used by any known extension, so it's removed without a deprecation phase.

 
 

2 updates

 
cid:jira-generated-image-avatar-cb6a85b0-df3d-4bd9-81d2-920b771e5ad1 Changes by Vincent Massol on 20/Oct/26 15:27
 
Fix Version: 1.3
Assignee: Vincent Massol