To me, the wtf is that if you already know the role is editable, there's not a lot of need to call a function to check if it's editable.
I also forgot to mention that it was pure cruft, not called from anywhere, and so I deleted the function.
To me, the wtf is that if you already know the role is editable, there's not a lot of need to call a function to check if it's editable.
I also forgot to mention that it was pure cruft, not called from anywhere, and so I deleted the function.
Been lurking here for years. Found loads of WTFs, but usually just email them around work. Found one just now, and, thought I'd share with a wider audience:
private function getEditability(selectedRoleEditable:Boolean):Boolean
{
if (selectedRoleEditable)
return true;
}
There is more after the if, it can return a different value from the one you pass in, but still, I read that far and immediately thought "WTF?"