Skip to content

Commit d07525d

Browse files
committed
refactor: remove deprecated chunkText method
1 parent 5e95e7d commit d07525d

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/main/java/fastcontentparse/FastContentParse.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import java.nio.charset.StandardCharsets;
66
import java.nio.file.Files;
77
import java.nio.file.Path;
8-
import java.util.List;
98
import java.util.Locale;
109
import java.util.Map;
1110

@@ -90,19 +89,6 @@ public ParsedDocument parseString(String rawText, String sourceName, String expl
9089
return new ParsedDocument(type, normalized);
9190
}
9291

93-
/**
94-
* Deprecated method stub retained for migration compatibility.
95-
*
96-
* @deprecated Use the dedicated FastContentChunk library for token and character chunking.
97-
*/
98-
@Deprecated(forRemoval = true)
99-
public List<String> chunkText(String text, int maxChunkSize, int overlap) {
100-
if (text == null || text.isBlank()) {
101-
return List.of();
102-
}
103-
throw new UnsupportedOperationException("chunkText was removed from FastContentParse; use FastContentChunk library");
104-
}
105-
10692
private String normalize(String rawText, String explicitType) {
10793
if (rawText == null) {
10894
return "";

0 commit comments

Comments
 (0)