Skip to content

Commit

Permalink
chore: Remove dead code in main_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BlenderDefender committed Feb 17, 2024
1 parent b991aa1 commit 36a15d5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions functions/main_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,6 @@ def get_collection(context: 'Context') -> 'Collection':
viewlayer_collection.hide_viewport = True
return collection

# ! Old code
# def get_view_layer_collection(context, widget=None):
# bw_collection_name = prefs.bonewidget_collection_name
# collection = context.view_layer.layer_collection.children[bw_collection_name]
# try:
# collection = context.view_layer.layer_collection.children[bw_collection_name]
# except KeyError:
# # need to find the collection it is actually in
# collection = context.view_layer.layer_collection.children[
# bpy.data.objects[widget.name].users_collection[0].name]


def recursively_find_layer_collection(layer_collection: 'Collection', collection_name: str) -> 'Collection':
"""Recursively find a collection with a specified collection name.
Expand Down

0 comments on commit 36a15d5

Please sign in to comment.