Skip to content

Commit fff9f9f

Browse files
committed
Code cleanup
- Make sure function returns a value - Remove unnecessary/unused variable assignments.
1 parent 0be8203 commit fff9f9f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Source/Source.API.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ function Source_PVM( $p_trigger_error=true ) {
5656
} else {
5757
trigger_error( ERROR_GENERIC, ERROR );
5858
}
59-
} else {
60-
return false;
6159
}
60+
return false;
6261
}
6362

6463
/**
@@ -821,7 +820,7 @@ static function delete( $p_id ) {
821820
$t_repo_table = plugin_table( 'repository', 'Source' );
822821

823822
$t_query = "DELETE FROM $t_repo_table WHERE id=" . db_param();
824-
$t_result = db_query( $t_query, array( (int) $p_id ) );
823+
db_query( $t_query, array( (int) $p_id ) );
825824
}
826825

827826
/**
@@ -1216,7 +1215,6 @@ static function from_result( $p_result, $p_load_files=false ) {
12161215
* @param int $p_repo_id Repository ID
12171216
*/
12181217
static function delete_by_repo( $p_repo_id ) {
1219-
$t_bug_table = plugin_table( 'bug', 'Source' );
12201218
$t_changeset_table = plugin_table( 'changeset', 'Source' );
12211219

12221220
# first drop any files for the repository's changesets

0 commit comments

Comments
 (0)