Cleanup: Remove redundant special handling after previous commit

Not needed anymore since 3a907e7425.
This commit is contained in:
Julian Eisel 2021-03-05 18:14:56 +01:00
parent 3a907e7425
commit 4addcf1efc
1 changed files with 1 additions and 7 deletions

View File

@ -1001,13 +1001,7 @@ TreeElement *outliner_add_element(SpaceOutliner *space_outliner,
/* Other cases must be caught above. */
BLI_assert(TSE_IS_REAL_ID(tselem));
/* do here too, for blend file viewer, own ID_LI then shows file name */
if (GS(id->name) == ID_LI) {
te->name = ((Library *)id)->filepath;
}
else {
te->name = id->name + 2; /* Default, can be overridden by Library or non-ID data. */
}
te->name = id->name + 2; /* Default, can be overridden by Library or non-ID data. */
te->idcode = GS(id->name);
}