Remove unneeded declare (#7570)

It turns out that we don't need it, flow is smart enough to realize that the function is declared in the two branches :)
(cherry picked from commit b977cf13c4)
This commit is contained in:
Christopher Chedeau
2016-10-03 16:27:32 -07:00
committed by Paul O’Shannessy
parent 58d6f4fac6
commit a9b2d841f7
@@ -43,24 +43,6 @@ function isNative(fn) {
}
}
type Item = { // eslint-disable-line no-unused-vars
element: ReactElement,
parentID: DebugID,
text: ?string,
childIDs: Array<DebugID>,
isMounted: bool,
updateCount: number,
};
declare function getItem(id: DebugID): ?Item;
declare function removeItem(id: DebugID): void;
declare function setItem(id: DebugID, item: Item): void;
declare function getItemIDs(): Array<DebugID>;
declare function addRoot(id: DebugID): void;
declare function removeRoot(id: DebugID): void;
declare function getRootIDs(): Array<DebugID>;
var canUseCollections = (
// Array.from
typeof Array.from === 'function' &&