From 2b440b0e44b162a820bcc2dc55064201848a5f10 Mon Sep 17 00:00:00 2001
From: Grzegorz Rola <grola@seostudio.pl>
Date: Mon, 16 Aug 2021 14:19:26 +0200
Subject: [PATCH] bugfix(duplicated method): fixed method duplication

---
 .../Composer/PrepareActivationReminderCommand.php   | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/ActivationReminder/Composer/PrepareActivationReminderCommand.php b/src/ActivationReminder/Composer/PrepareActivationReminderCommand.php
index 7d083ae..5c12fda 100644
--- a/src/ActivationReminder/Composer/PrepareActivationReminderCommand.php
+++ b/src/ActivationReminder/Composer/PrepareActivationReminderCommand.php
@@ -60,19 +60,6 @@ class PrepareActivationReminderCommand extends BaseCommand
 	    $output->writeln( "Activation reminder created." );
     }
 
-    private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) {
-    	$target_file_store = 'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file';
-    	if ( ! file_exists( $target_file_store ) ) {
-		    $target_file = $class_map[ $random_class ];
-		    $target_file = str_replace( '.php', $random_letter . '.php', $target_file );
-		    $target_file = str_replace( getcwd() . '/vendor/composer/../../', '', $target_file );
-
-		    file_put_contents( $target_file_store, $target_file );
-	    }
-
-    	return file_get_contents( $target_file_store );
-    }
-
     private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) {
     	$target_file_store = 'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file';
     	if ( ! file_exists( $target_file_store ) ) {
-- 
GitLab