mirror of
https://github.com/dromara/tianai-captcha.git
synced 2026-05-06 21:53:10 +08:00
refactor: 删除 StaticCaptchaPostProcessorManager 类
删除了 src/main/java/cloud/tianai/captcha/generator/impl/StaticCaptchaPostProcessorManager.java 文件。该类似乎未被使用,移除无用代码有助于简化项目结构。
This commit is contained in:
-74
@@ -1,74 +0,0 @@
|
||||
package cloud.tianai.captcha.generator.impl;
|
||||
|
||||
//
|
||||
///**
|
||||
// * @Author: 天爱有情
|
||||
// * @date 2023/4/24 15:23
|
||||
// * @Description 验证码后处理器管理
|
||||
// */
|
||||
//public class StaticCaptchaPostProcessorManager {
|
||||
//
|
||||
// @Getter
|
||||
// private static LinkedList<ImageCaptchaPostProcessor> processors = new LinkedList<>();
|
||||
//
|
||||
// public static void add(ImageCaptchaPostProcessor processor) {
|
||||
// processors.add(processor);
|
||||
// }
|
||||
//
|
||||
// public static void add(Integer index, ImageCaptchaPostProcessor processor) {
|
||||
// processors.add(index, processor);
|
||||
// }
|
||||
//
|
||||
// public static void addFirst(ImageCaptchaPostProcessor processor) {
|
||||
// processors.addFirst(processor);
|
||||
// }
|
||||
//
|
||||
// public static void addLast(ImageCaptchaPostProcessor processor) {
|
||||
// processors.addLast(processor);
|
||||
// }
|
||||
//
|
||||
// public static void clear() {
|
||||
// processors.clear();
|
||||
// }
|
||||
//
|
||||
// public static void add(List<ImageCaptchaPostProcessor> addPostProcessors) {
|
||||
// processors.addAll(addPostProcessors);
|
||||
// }
|
||||
//
|
||||
//
|
||||
// public static ImageCaptchaInfo applyPostProcessorBeforeGenerate(CaptchaExchange captchaExchange, ImageCaptchaGenerator context) {
|
||||
// for (ImageCaptchaPostProcessor processor : processors) {
|
||||
// try {
|
||||
// ImageCaptchaInfo imageCaptchaInfo = processor.beforeGenerateCaptchaImage(captchaExchange, context);
|
||||
// if (imageCaptchaInfo != null) {
|
||||
// return imageCaptchaInfo;
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// throw new ImageCaptchaException("apply ImageCaptchaPostProcessor.beforeGenerateCaptchaImage error, [" + processor.getClass() + "]", e);
|
||||
// }
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// public static void applyPostProcessorBeforeWrapImageCaptchaInfo(CaptchaExchange captchaExchange, ImageCaptchaGenerator context) {
|
||||
// for (ImageCaptchaPostProcessor processor : processors) {
|
||||
// try {
|
||||
// processor.beforeWrapImageCaptchaInfo(captchaExchange, context);
|
||||
// } catch (Exception e) {
|
||||
// throw new ImageCaptchaException("apply ImageCaptchaPostProcessor.beforeWrapImageCaptchaInfo error, [" + processor.getClass() + "]", e);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
// public static void applyPostProcessorAfterGenerateCaptchaImage(CaptchaExchange captchaExchange, ImageCaptchaInfo imageCaptchaInfo, ImageCaptchaGenerator context) {
|
||||
// for (ImageCaptchaPostProcessor processor : processors) {
|
||||
// try {
|
||||
// processor.afterGenerateCaptchaImage(captchaExchange, imageCaptchaInfo, context);
|
||||
// } catch (Exception e) {
|
||||
// throw new ImageCaptchaException("apply ImageCaptchaPostProcessor.afterGenerateCaptchaImage error, [" + processor.getClass() + "]", e);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//}
|
||||
Reference in New Issue
Block a user