Skip to content

Commit 51ae950

Browse files
committed
Cleanup
1 parent 2a3d505 commit 51ae950

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/DB_Command_SQLite.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ protected function sqlite_drop() {
153153
if ( $wpdb instanceof \wpdb ) {
154154
$wpdb->close();
155155
}
156-
unset( $wpdb );
157-
gc_collect_cycles();
158156

159157
if ( ! @unlink( $db_path ) ) {
160158
WP_CLI::error( "Could not delete database file: {$db_path}" );
@@ -179,8 +177,6 @@ protected function sqlite_reset() {
179177
if ( $wpdb instanceof \wpdb ) {
180178
$wpdb->close();
181179
}
182-
unset( $wpdb );
183-
gc_collect_cycles();
184180

185181
if ( ! @unlink( $db_path ) ) {
186182
WP_CLI::error( "Could not delete database file: {$db_path}" );

0 commit comments

Comments
 (0)