Skip to content

Commit 6097cf8

Browse files
committed
Exclude remove_log related code
1 parent 1be6d9d commit 6097cf8

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

php/class-utils.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -781,24 +781,6 @@ public static function log( $message, $key = null ) {
781781
}
782782
}
783783

784-
/**
785-
* Remove a debug message.
786-
*
787-
* @param string $key The key that holds the message.
788-
*/
789-
public static function remove_log( $key ) {
790-
if ( ! get_plugin_instance()->get_component( 'report' )->enabled() || ! $key ) {
791-
return;
792-
}
793-
794-
$messages = get_option( Sync::META_KEYS['debug'], array() );
795-
796-
if ( isset( $messages[ $key ] ) ) {
797-
unset( $messages[ $key ] );
798-
update_option( Sync::META_KEYS['debug'], $messages, false );
799-
}
800-
}
801-
802784
/**
803785
* Get the debug messages.
804786
*

php/delivery/class-responsive-breakpoints.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ protected function apply_breakpoints( $tag_element ) {
166166
$tag_element['atts']['sizes'] = '(max-width: ' . $width . 'px) 100vw, ' . $width . 'px';
167167
}
168168

169-
Utils::remove_log( $debug_key );
170-
171169
return $tag_element;
172170
}
173171

0 commit comments

Comments
 (0)