mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-19 21:03:11 -07:00
Removing useless code from VisualTree::FindDescendantByName (#925)
This commit is contained in:
parent
c7c9bf0513
commit
80e9b82bdc
1 changed files with 0 additions and 2 deletions
|
@ -19,8 +19,6 @@ FrameworkElement ^ VisualTree::FindDescendantByName(DependencyObject ^ element,
|
||||||
}
|
}
|
||||||
|
|
||||||
auto frameworkElement = dynamic_cast<FrameworkElement ^>(element);
|
auto frameworkElement = dynamic_cast<FrameworkElement ^>(element);
|
||||||
auto nsame = frameworkElement->Name->Data();
|
|
||||||
nsame = nsame;
|
|
||||||
if (frameworkElement != nullptr && name->Equals(frameworkElement->Name))
|
if (frameworkElement != nullptr && name->Equals(frameworkElement->Name))
|
||||||
{
|
{
|
||||||
return frameworkElement;
|
return frameworkElement;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue