From 351a058ff12eb941515b0a3a1d47baa8eee19f1a Mon Sep 17 00:00:00 2001
From: John Ciacia <john.ciacia@gmail.com>
Date: Tue, 30 Jul 2013 12:56:39 -0700
Subject: [PATCH] removing orphaned code

---
 cdn-rewrite.php | 26 ++------------------------
 1 file changed, 2 insertions(+), 24 deletions(-)

diff --git a/cdn-rewrite.php b/cdn-rewrite.php
index 3247bc6..c14cf52 100644
--- a/cdn-rewrite.php
+++ b/cdn-rewrite.php
@@ -14,8 +14,6 @@ class CDN_Rewrite {
 
 	const OPTION_GENERAL = 'cdn_general';
 
-	private $submenu_general;
-
 	private $cdn_root_url;
 	private $file_extensions;
 
@@ -44,11 +42,11 @@ class CDN_Rewrite {
 	}
 
 	public function initialize() {
-		if (!class_exists('Voce_Settings_Api')) {
+		if (!class_exists('Voce_Settings_API')) {
 			return;
 		}
 
-		self::add_options_page();
+		$this->add_options_page();
 		if ('' == $this->file_extensions || '' == $this->cdn_root_url) {
 			add_action('admin_notices', array($this, 'settings_warning'));
 			return;
@@ -99,26 +97,6 @@ class CDN_Rewrite {
 				->add_setting( 'File Extensions for JS Files (optional, defaults to Root URL)', 'js_file_extensions' );
 	}
 
-	/**
-	 * callback to display submenu_external
-	 *
-	 * @return void
-	 */
-	function submenu_general() {
-		?>
-		<div class="wrap">
-			<h2>CDN Rewrite Settings</h2>
-			<form method="post" action="options.php">
-				<?php settings_fields(self::OPTION_GENERAL); ?>
-				<?php do_settings_sections($this->submenu_general); ?>
-				<p class="submit">
-					<input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e('Save Changes'); ?>" />
-				</p>
-			</form>
-		</div>
-		<?php
-	}
-
 	/**
 	 * start output buffering.
 	 *
-- 
GitLab