Skip to content

Commit cfcfbc6

Browse files
committed
Remove useless constant
1 parent f04e334 commit cfcfbc6

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

config.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,3 @@
2727
* @var string
2828
*/
2929
define('MPG_MONGODB_PORT', '27017');
30-
31-
/**
32-
* MongoDB server database.
33-
*
34-
* @var string
35-
*/
36-
define('MPG_MONGODB_DATABASE', '');

src/Helpers/MongoDBHelper.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ public static function createClient() : MongoDBClient {
2525
$clientUri .= ':' . MPG_MONGODB_PORT;
2626
}
2727

28-
if ( !empty(MPG_MONGODB_DATABASE) ) {
29-
$clientUri .= '/' . MPG_MONGODB_DATABASE;
30-
}
31-
3228
return new MongoDBClient($clientUri);
3329

3430
}

0 commit comments

Comments
 (0)