Remove never-executed else-block

And the always-tru if-check

Change-Id: I674d65506e1791fadab7d2871010528fd5dd94d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88816
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Muhammet Kara 2020-02-16 20:53:15 +03:00 committed by Noel Grandin
parent 1d219e5097
commit ce6434c44a

View file

@ -112,15 +112,11 @@ public __gc class BridgeTest : public WeakBase, public XMain
Any a2 = (Any) val2;
ret = a1.Type == a2.Type && compareData(a1.Value, a2.Value);
}
else if (t1->IsValueType)
else
{
//Any, enum, int, bool char, float, double etc.
ret = val1->Equals(val2);
}
else
{
Debug::Assert(false);
}
return ret;
}