From 71b5d2fa0e62b960b2454e8623b7ca20385ef08a Mon Sep 17 00:00:00 2001 From: Constantin Simonis Date: Wed, 5 Feb 2025 10:50:45 +0100 Subject: [PATCH] remove unused class --- .../szut/casino/config/SampleDataCreator.java | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 backend/src/main/java/de/szut/casino/config/SampleDataCreator.java diff --git a/backend/src/main/java/de/szut/casino/config/SampleDataCreator.java b/backend/src/main/java/de/szut/casino/config/SampleDataCreator.java deleted file mode 100644 index ca832af..0000000 --- a/backend/src/main/java/de/szut/casino/config/SampleDataCreator.java +++ /dev/null @@ -1,33 +0,0 @@ -package de.szut.casino.config; - - -import de.szut.casino.hello.HelloEntity; -import de.szut.casino.hello.HelloRepository; -import org.springframework.boot.ApplicationArguments; -import org.springframework.boot.ApplicationRunner; -import org.springframework.context.annotation.Bean; -import org.springframework.stereotype.Component; -import org.springframework.web.client.RestTemplate; - -@Component -public class SampleDataCreator implements ApplicationRunner { - - private HelloRepository repository; - - public SampleDataCreator(HelloRepository repository) { - this.repository = repository; - } - - public void run(ApplicationArguments args) { - repository.save(new HelloEntity("Hallo Welt!")); - repository.save(new HelloEntity("Schöner Tag heute")); - repository.save(new HelloEntity("FooBar")); - - } - - @Bean - public RestTemplate restTemplate() { - return new RestTemplate(); - } - -}