Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit 8ff8c1b

Browse files
committed
Removed unused variable and code
1 parent f0975d1 commit 8ff8c1b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/MongoDB/BSON/UTCDateTime.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@ void HHVM_METHOD(MongoDBBsonUTCDateTime, __construct, const Variant &millisecond
3737

3838
Object HHVM_METHOD(MongoDBBsonUTCDateTime, toDateTime)
3939
{
40-
static HPHP::Class* c_dt;
4140
int64_t milliseconds = this_->o_get(s_MongoBsonUTCDateTime_milliseconds, false, s_MongoBsonUTCDateTime_className).toInt64();
4241

4342
/* Prepare result */
44-
c_dt = HPHP::Unit::lookupClass(HPHP::s_DateTime.get());
45-
assert(c_dt);
4643
HPHP::Object obj{DateTimeData::getClass()};
4744

4845
DateTimeData* data = Native::data<DateTimeData>(obj.get());

0 commit comments

Comments
 (0)